Lines Matching refs:LightingPass
151 } LightingPass; variable
208 LightingPass.cameraPosition.x = camLoc.x; in CameraInit()
209 LightingPass.cameraPosition.y = camLoc.y; in CameraInit()
210 LightingPass.cameraPosition.z = camLoc.z; in CameraInit()
211 LightingPass.cameraPosition.w = 1.0f; in CameraInit()
404 LightingPass.ambientColor.x = 0.3f; in LightingPassInit()
405 LightingPass.ambientColor.y = 0.3f; in LightingPassInit()
406 LightingPass.ambientColor.z = 0.3f; in LightingPassInit()
407 LightingPass.ambientColor.w = 1.0f; in LightingPassInit()
409 LightingPass.lightColor.x = 1.0f; in LightingPassInit()
410 LightingPass.lightColor.y = 1.0f; in LightingPassInit()
411 LightingPass.lightColor.z = 1.0f; in LightingPassInit()
412 LightingPass.lightColor.w = 10.0f / 255.0f; // attenuation / 255.0f in LightingPassInit()
414 LightingPass.lightPosition.x = 40.0f; in LightingPassInit()
415 LightingPass.lightPosition.y = 30.0f; in LightingPassInit()
416 LightingPass.lightPosition.z = 40.0f; in LightingPassInit()
417 LightingPass.lightPosition.w = 1.0f; in LightingPassInit()
420 GX2InitTexture(&LightingPass.myTextureBuffer[0], in LightingPassInit()
427 GX2SetSurfaceSwizzle(&LightingPass.myTextureBuffer[0].surface, 1); in LightingPassInit()
428 GX2InitTexture(&LightingPass.myTextureBuffer[1], in LightingPassInit()
435 GX2SetSurfaceSwizzle(&LightingPass.myTextureBuffer[1].surface, 2); in LightingPassInit()
436 GX2InitTexture(&LightingPass.myTextureBuffer[2], in LightingPassInit()
443 GX2SetSurfaceSwizzle(&LightingPass.myTextureBuffer[2].surface, 4); in LightingPassInit()
446 GX2InitSampler(&LightingPass.mySampler, in LightingPassInit()
464 GX2UTCreateVertexBuffer(&LightingPass.attribs.attributeBuffer[0], in LightingPassInit()
469 GX2UTCreateVertexBuffer(&LightingPass.attribs.attributeBuffer[1], in LightingPassInit()
474 GX2UTCreateIndexBuffer(&LightingPass.attribs.indexBuffer, in LightingPassInit()
479 GX2UTFillBuffer(&LightingPass.attribs.attributeBuffer[0], posInitData); in LightingPassInit()
480 GX2UTFillBuffer(&LightingPass.attribs.attributeBuffer[1], texInitData); in LightingPassInit()
481 GX2UTFillBuffer(&LightingPass.attribs.indexBuffer, idxInitData); in LightingPassInit()
487 DEMOGfxLoadShaders(&LightingPass.shaders, 0, gshBuf); in LightingPassInit()
495 DEMOGfxInitShaderAttribute(&LightingPass.shaders, in LightingPassInit()
503 DEMOGfxGetPixelShaderSamplerLocation(&LightingPass.shaders, "s_diffuse"); in LightingPassInit()
504 DEMOGfxGetPixelShaderSamplerLocation(&LightingPass.shaders, "s_normal"); in LightingPassInit()
505 DEMOGfxGetPixelShaderSamplerLocation(&LightingPass.shaders, "s_position"); in LightingPassInit()
508 DEMOGfxGetPixelShaderUniformLocation(&LightingPass.shaders, "u_ambientColor"); in LightingPassInit()
509 DEMOGfxGetPixelShaderUniformLocation(&LightingPass.shaders, "u_lightColor"); in LightingPassInit()
510 DEMOGfxGetPixelShaderUniformLocation(&LightingPass.shaders, "u_lightPosition"); in LightingPassInit()
511 DEMOGfxGetPixelShaderUniformLocation(&LightingPass.shaders, "u_cameraPosition"); in LightingPassInit()
514 DEMOGfxInitFetchShader(&LightingPass.shaders); in LightingPassInit()
642 DEMOGfxFreeShaders(&LightingPass.shaders); in SceneFree()
646 GX2RDestroyBuffer(&LightingPass.attribs.attributeBuffer[attribSlot]); in SceneFree()
649 GX2RDestroyBuffer(&LightingPass.attribs.indexBuffer); in SceneFree()
684 … GX2SetSurfaceSwizzle(&LightingPass.myTextureBuffer[i].surface, swizzleValues[sceneDraws][i]); in SceneDraw()
803 LightingPass.myTextureBuffer[0].surface.imagePtr, in GeometryPassDraw()
804 LightingPass.myTextureBuffer[0].surface.imageSize ); in GeometryPassDraw()
806 LightingPass.myTextureBuffer[1].surface.imagePtr, in GeometryPassDraw()
807 LightingPass.myTextureBuffer[1].surface.imageSize ); in GeometryPassDraw()
809 LightingPass.myTextureBuffer[2].surface.imagePtr, in GeometryPassDraw()
810 LightingPass.myTextureBuffer[2].surface.imageSize ); in GeometryPassDraw()
853 GX2SetShaders(&LightingPass.shaders.fetchShader, in LightingPassDraw()
854 LightingPass.shaders.pVertexShader, in LightingPassDraw()
855 LightingPass.shaders.pPixelShader); in LightingPassDraw()
860 GX2UTSetAttributeBuffer(&LightingPass.attribs.attributeBuffer[attribSlot], attribSlot, 0); in LightingPassDraw()
865 …GX2InitTexturePtrs(&LightingPass.myTextureBuffer[0], GeometryPass.myColorBuffer[0].surface.imagePt… in LightingPassDraw()
866 …GX2InitTexturePtrs(&LightingPass.myTextureBuffer[1], GeometryPass.myColorBuffer[1].surface.imagePt… in LightingPassDraw()
867 …GX2InitTexturePtrs(&LightingPass.myTextureBuffer[2], GeometryPass.myColorBuffer[2].surface.imagePt… in LightingPassDraw()
869 …GX2SetPixelTexture(&LightingPass.myTextureBuffer[0], LightingPass.shaders.samplersPS.location[samp… in LightingPassDraw()
870 …GX2SetPixelSampler(&LightingPass.mySampler, LightingPass.shaders.samplersPS.location[samp… in LightingPassDraw()
872 …GX2SetPixelTexture(&LightingPass.myTextureBuffer[1], LightingPass.shaders.samplersPS.location[samp… in LightingPassDraw()
873 …GX2SetPixelSampler(&LightingPass.mySampler, LightingPass.shaders.samplersPS.location[samp… in LightingPassDraw()
875 …GX2SetPixelTexture(&LightingPass.myTextureBuffer[2], LightingPass.shaders.samplersPS.location[samp… in LightingPassDraw()
876 …GX2SetPixelSampler(&LightingPass.mySampler, LightingPass.shaders.samplersPS.location[samp… in LightingPassDraw()
879 …GX2SetPixelUniformReg(LightingPass.shaders.uniformsPS.location[uniformPSCount], 4, &LightingPass.a… in LightingPassDraw()
881 …GX2SetPixelUniformReg(LightingPass.shaders.uniformsPS.location[uniformPSCount], 4, &LightingPass.l… in LightingPassDraw()
883 …GX2SetPixelUniformReg(LightingPass.shaders.uniformsPS.location[uniformPSCount], 4, &LightingPass.l… in LightingPassDraw()
885 …GX2SetPixelUniformReg(LightingPass.shaders.uniformsPS.location[uniformPSCount], 4, &LightingPass.c… in LightingPassDraw()
889 GX2UTDrawIndexed(GX2_PRIMITIVE_QUADS, &LightingPass.attribs.indexBuffer); in LightingPassDraw()