mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-10 09:43:52 +01:00
burning v0.53 g++ warning remove
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6365 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
4fe6a16165
commit
e08e37fc0f
@ -2153,11 +2153,13 @@ void CBurningVideoDriver::VertexCache_fill(const u32 sourceIndex, const u32 dest
|
||||
v.x = dot(lightdir, t);
|
||||
v.y = dot(lightdir, b);
|
||||
v.z = dot(lightdir, n);
|
||||
v.w = 0;
|
||||
lightVec = normalize(v);
|
||||
|
||||
v.x = dot(vertexPosition, t);
|
||||
v.y = dot(vertexPosition, b);
|
||||
v.z = dot(vertexPosition, n);
|
||||
v.w = 0;
|
||||
eyeVec = normalize(v);
|
||||
|
||||
vertexPosition = normalize(vertexPosition);
|
||||
@ -3366,7 +3368,7 @@ void CBurningVideoDriver::assignHardwareLight(SBurningShaderLight& l, const SLig
|
||||
//! adds a dynamic light
|
||||
s32 CBurningVideoDriver::addDynamicLight(const SLight& dl)
|
||||
{
|
||||
s32 i0 = CNullDriver::addDynamicLight(dl);
|
||||
/*s32 i0 = */CNullDriver::addDynamicLight(dl);
|
||||
|
||||
SBurningShaderLight l;
|
||||
EyeSpace.Light.push_back(l);
|
||||
|
@ -225,7 +225,7 @@ void CTRTextureGouraudAlpha2::fragmentShader()
|
||||
#endif
|
||||
|
||||
#ifdef IPOL_C1
|
||||
tFixPoint aFog = FIX_POINT_ONE;
|
||||
//tFixPoint aFog = FIX_POINT_ONE;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -47,6 +47,10 @@ struct SBurningShaderLight
|
||||
sVec3Color AmbientColor;
|
||||
sVec3Color DiffuseColor;
|
||||
sVec3Color SpecularColor;
|
||||
SBurningShaderLight()
|
||||
{
|
||||
LightIsOn = false;
|
||||
}
|
||||
};
|
||||
|
||||
enum eTransformLightFlags
|
||||
|
@ -4,7 +4,10 @@
|
||||
*/
|
||||
void burning_shader_class::burning_shader_fragment()
|
||||
{
|
||||
#ifdef burning_shader_colormask
|
||||
#else
|
||||
tVideoSample *dst;
|
||||
#endif
|
||||
|
||||
#ifdef USE_ZBUFFER
|
||||
fp24 *z;
|
||||
@ -84,7 +87,10 @@ void burning_shader_class::burning_shader_fragment()
|
||||
#endif
|
||||
|
||||
SOFTWARE_DRIVER_2_CLIPCHECK;
|
||||
#ifdef burning_shader_colormask
|
||||
#else
|
||||
dst = (tVideoSample*)RenderTarget->getData() + (line.y * RenderTarget->getDimension().Width) + xStart;
|
||||
#endif
|
||||
|
||||
#ifdef USE_ZBUFFER
|
||||
z = (fp24*)DepthBuffer->lock() + (line.y * RenderTarget->getDimension().Width) + xStart;
|
||||
|
Loading…
Reference in New Issue
Block a user