Download Documentation - Mahmoud Zeidan
Transcript
the pixels from the two polys compete for the same screen pixel. This is particularly a problem for decals (polys attached to another surface to represent details such as bulletholes etc.). @par A way to combat this problem is to use a depth bias to adjust the depth buffer value used for the decal such that it is slightly higher than the true value, ensuring that the decal appears on top. @param bias The bias value, should be between 0 and 16. */ virtual void _setDepthBias(ushort bias) =0; /** Sets the fogging mode for future geometry. @param mode Set up the mode of fog as described in the FogMode enum, or set to FOG_NONE to turn off. @param colour The colour of the fog. Either set this to the same as your viewport background colour, or to blend in with a skydome or skybox. @param expDensity The density of the fog in FOG_EXP or FOG_EXP2 mode, as a value between 0 and 1. The default is 1. i.e. completely opaque, lower values can mean that fog never completely obscures the scene. @param linearStart Distance at which linear fog starts to encroach. The distance must be passed as a parametric value between 0 and 1, with 0 being the near clipping plane, and 1 being the far clipping plane. Only applicable if mode is FOG_LINEAR. @param linearEnd Distance at which linear fog becomes completely opaque.The distance must be passed as a parametric value between 0 and 1, with 0 being the near clipping plane, and 1 being the far clipping plane. Only applicable if mode is FOG_LINEAR. */ virtual void _setFog(FogMode mode = FOG_NONE, ColourValue colour = ColourValue::White, Real expDensity = 1.0, Real linearStart = 0.0, Real linearEnd = 1.0) = 0; /** The RenderSystem will keep a count of tris rendered, this resets the count. */ virtual void _beginGeometryCount(void); /** Reports the number of tris rendered since the last _beginGeometryCount call. */ virtual unsigned int _getFaceCount(void); /** Reports the number of vertices passed to the renderer since the last _beginGeometryCount call. */ virtual unsigned int _getVertexCount(void); /** Generates a packed data version of the passed in ColourValue suitable for use as with this RenderSystem. @remarks Since different render systems have different colour data formats (eg