mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 14:10:11 +00:00
f2cc840c31
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
34 lines
627 B
C++
34 lines
627 B
C++
#ifndef RAYTRACED_SHADOW_DEMO_H
|
|
#define RAYTRACED_SHADOW_DEMO_H
|
|
|
|
#include "../rigidbody/GpuConvexScene.h"
|
|
|
|
class GpuRaytraceScene : public GpuBoxPlaneScene
|
|
{
|
|
protected:
|
|
b3AlignedObjectArray<b3RayInfo> primaryRays;
|
|
|
|
struct GpuRaytraceInternalData* m_raytraceData;
|
|
|
|
public:
|
|
GpuRaytraceScene();
|
|
virtual ~GpuRaytraceScene();
|
|
virtual const char* getName()
|
|
{
|
|
return "GPURaytrace";
|
|
}
|
|
|
|
static GpuDemo* MyCreateFunc()
|
|
{
|
|
GpuDemo* demo = new GpuRaytraceScene;
|
|
return demo;
|
|
}
|
|
|
|
virtual int createDynamicsObjects(const ConstructionInfo& ci);
|
|
|
|
void renderScene();
|
|
void renderScene2();
|
|
};
|
|
|
|
#endif //RAYTRACED_SHADOW_DEMO_H
|