void Refraction_PostRenderTargetUpdate(RenderTargetEvent_NativePtr evt) { // Show plane and objects above the water pPlaneEnt.Visible = true; foreach (Entity ent in aboveWaterEnts) { ent.Visible = true; } }
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; }
void Refraction_PreRenderTargetUpdate(RenderTargetEvent_NativePtr evt) { // Hide plane and objects above the water pPlaneEnt.Visible = false; foreach (Entity ent in aboveWaterEnts) { ent.Visible = false; } }
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(); }
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); }
void Refraction_PreRenderTargetUpdate(RenderTargetEvent_NativePtr evt) { // Hide plane and objects above the water pPlaneEnt.Visible = false; foreach (Entity ent in aboveWaterEnts) { ent.Visible = false; } }
void Refraction_PostRenderTargetUpdate(RenderTargetEvent_NativePtr evt) { // Show plane and objects above the water pPlaneEnt.Visible = true; foreach (Entity ent in aboveWaterEnts) { ent.Visible = true; } }
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); }
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(); }
void RenderArea_PostRenderTargetUpdate(RenderTargetEvent_NativePtr evt) { manualObj1.Visible = false; manualObj2.Visible = true; }
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; }
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; }
// render target events void preRenderTargetUpdate(RenderTargetEvent_NativePtr evt) { // Hide plane mPlaneEnt.Visible = false; }
void postRenderTargetUpdate(RenderTargetEvent_NativePtr evt) { // Show plane mPlaneEnt.Visible = true; }