 
 using namespace optix;
 
-struct PerRayData_pathtrace
-{
-  float3 result;
-  float3 radiance;
-  float3 attenuation;
-  float3 origin;
-  float3 direction;
-  unsigned int seed;
-  int depth;
-  int countEmitted;
-  int done;
-  int inside;
-
-  // @sai bi
-  Matrix3x3 sh_coeff;
-  Matrix3x3 sh_result;
+struct PerRayData_radiance{
+    float3 result;
+    float importance;
+    int depth;
 };
 
-struct PerRayData_pathtrace_shadow
-{
-  bool inShadow;
+
+struct PerRayData_pathtrace_shadow{
+    bool inShadow;
 };
 
 // Scene wide



RT_PROGRAM void miss(){
  current_prd.radiance = bg_color;
  current_prd.done = true;
}



// For vertex tracer
rtBuffer<MyVertex>  vertices;



RT_PROGRAM void exception(){
