move shaders to .glsl files and stringify to .h file.
add crude screenshot facility (using F1 key), it can also be used for debugging start with shadows using shadowmap, not working yet add experimental 'ignore' body index in raycast, using b3HitInfo.m_m_hitResult2
This commit is contained in:
36
Demos3/GpuDemos/shadows/ShadowMapDemo.h
Normal file
36
Demos3/GpuDemos/shadows/ShadowMapDemo.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef SHADOW_MAP_DEMO_H
|
||||
#define SHADOW_MAP_DEMO_H
|
||||
|
||||
#include "../GpuDemo.h"
|
||||
|
||||
class ShadowMapDemo : public GpuDemo
|
||||
{
|
||||
struct ShadowMapDemoInternalData* m_shadowData;
|
||||
|
||||
public:
|
||||
|
||||
ShadowMapDemo();
|
||||
virtual ~ShadowMapDemo();
|
||||
|
||||
virtual const char* getName()
|
||||
{
|
||||
return "ShadowMapDemo";
|
||||
}
|
||||
|
||||
virtual void initPhysics(const ConstructionInfo& ci);
|
||||
|
||||
virtual void exitPhysics();
|
||||
|
||||
virtual void renderScene();
|
||||
|
||||
virtual void clientMoveAndDisplay();
|
||||
|
||||
static GpuDemo* MyCreateFunc()
|
||||
{
|
||||
GpuDemo* demo = new ShadowMapDemo;
|
||||
return demo;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif //SHADOW_MAP_DEMO_H
|
||||
Reference in New Issue
Block a user