Пример #1
0
 void Refraction_PostRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Show plane and objects above the water
     pPlaneEnt.Visible = true;
     foreach (Entity ent in aboveWaterEnts)
     {
         ent.Visible = true;
     }
 }
Пример #2
0
        void RenderArea_PreRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
        {
            // Random color
            Vector4 color = new Vector4((float)ran.NextDouble(), (float)ran.NextDouble(), (float)ran.NextDouble(), 1.0f);

            manualObj1.GetSection(0).SetCustomParameter(constantColor, color);
            manualObj1.Visible = true;
            manualObj2.Visible = false;
        }
Пример #3
0
 void Refraction_PreRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Hide plane and objects above the water
     pPlaneEnt.Visible = false;
     foreach (Entity ent in aboveWaterEnts)
     {
         ent.Visible = false;
     }
 }
Пример #4
0
 void Reflection_PostRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Show plane and objects below the water
     pPlaneEnt.Visible = true;
     foreach (Entity ent in belowWaterEnts)
     {
         ent.Visible = true;
     }
     camera.DisableReflection();
 }
Пример #5
0
 void Reflection_PreRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Hide plane and objects below the water
     pPlaneEnt.Visible = false;
     foreach (Entity ent in belowWaterEnts)
     {
         ent.Visible = false;
     }
     camera.EnableReflection(reflectionPlane);
 }
Пример #6
0
 void Refraction_PreRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Hide plane and objects above the water
     pPlaneEnt.Visible = false;
     foreach (Entity ent in aboveWaterEnts)
     {
         ent.Visible = false;
     }
 }
Пример #7
0
 void Refraction_PostRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Show plane and objects above the water
     pPlaneEnt.Visible = true;
     foreach (Entity ent in aboveWaterEnts)
     {
         ent.Visible = true;
     }
 }
Пример #8
0
 void Reflection_PreRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Hide plane and objects below the water
     pPlaneEnt.Visible = false;
     foreach (Entity ent in belowWaterEnts)
     {
         ent.Visible = false;
     }
     camera.EnableReflection(reflectionPlane);
 }
Пример #9
0
 void Reflection_PostRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Show plane and objects below the water
     pPlaneEnt.Visible = true;
     foreach (Entity ent in belowWaterEnts)
     {
         ent.Visible = true;
     }
     camera.DisableReflection();
 }
Пример #10
0
 void RenderArea_PostRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     manualObj1.Visible = false;
     manualObj2.Visible = true;
 }
Пример #11
0
 void RenderArea_PreRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Random color
     Vector4 color = new Vector4((float)ran.NextDouble(), (float)ran.NextDouble(), (float)ran.NextDouble(), 1.0f);
     manualObj1.GetSection(0).SetCustomParameter(constantColor, color);
     manualObj1.Visible = true;
     manualObj2.Visible = false;
 }
Пример #12
0
 void RenderArea_PostRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     manualObj1.Visible = false;
     manualObj2.Visible = true;
 }
 // render target events
 void preRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Hide plane
     mPlaneEnt.Visible = false;
 }
 void postRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Show plane
     mPlaneEnt.Visible = true;
 }
Пример #15
0
 // render target events
 void preRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Hide plane
     mPlaneEnt.Visible = false;
 }
Пример #16
0
 void postRenderTargetUpdate(RenderTargetEvent_NativePtr evt)
 {
     // Show plane
     mPlaneEnt.Visible = true;
 }