- initial work on textured dynamic light processing.

This commit is contained in:
Christoph Oelckers 2016-05-04 22:14:39 +02:00
commit ec7b4b1ba4
3 changed files with 20 additions and 10 deletions

View file

@ -95,7 +95,7 @@ FGLRenderer::FGLRenderer(OpenGLFrameBuffer *fb)
mSkyVBO = NULL;
gl_spriteindex = 0;
mShaderManager = NULL;
glpart2 = glpart = mirrortexture = NULL;
gllight = glpart2 = glpart = mirrortexture = NULL;
mLights = NULL;
}
@ -112,6 +112,7 @@ void FGLRenderer::Initialize()
}
else mVAOID = 0;
gllight = FTexture::CreateTexture(Wads.GetNumForFullName("glstuff/gllight.png"), FTexture::TEX_MiscPatch);
glpart2 = FTexture::CreateTexture(Wads.GetNumForFullName("glstuff/glpart2.png"), FTexture::TEX_MiscPatch);
glpart = FTexture::CreateTexture(Wads.GetNumForFullName("glstuff/glpart.png"), FTexture::TEX_MiscPatch);
mirrortexture = FTexture::CreateTexture(Wads.GetNumForFullName("glstuff/mirror.png"), FTexture::TEX_MiscPatch);