public CubeMapRender(Camera.aCamera pCamera, CubeMapTexture pCubemap, Shader pShader, Geometry pGeometry) { camera = pCamera; cubemap = pCubemap; shader = pShader; geometry = pGeometry; ViewMatLocation = GL.GetUniformLocation(shader.ShaderID, "ViewMat"); ProjMatLocation = GL.GetUniformLocation(shader.ShaderID, "ProjMat"); ModelMatLocation = GL.GetUniformLocation(shader.ShaderID, "ModelMat"); SkyBoxLocation = GL.GetUniformLocation(shader.ShaderID, "SkyBox"); }
public SystemRender(Camera.aCamera pCamera) { mCamera = pCamera; MASK = (ComponentTypes.COMPONENT_POSITION | ComponentTypes.COMPONENT_DIRECTION | ComponentTypes.COMPONENT_GEOMETRY | ComponentTypes.COMPONENT_TEXTURE | ComponentTypes.COMPONENT_SHADER); }