21 #ifndef PROJECTED_LIGHTS_H
22 #define PROJECTED_LIGHTS_H
26 #include <GLES3/gl3.h>
31 #define CAMERA_PERSPECTIVE_FOV_IN_DEGREES (60.0f)
33 #define COLOR_TEXTURE_NAME ("/data/data/com.arm.malideveloper.openglessdk.projectedLights/files/mali.bmp")
35 #define COLOR_TEXTURE_TRANSLATION (15.0f)
37 #define CUBE_SCALING_FACTOR (2.0f)
39 #define LIGHT_PERSPECTIVE_FOV_IN_DEGREES (90.0f)
41 #define FAR_PLANE (50.0f)
43 #define FRAGMENT_SHADER_FILE_NAME ("/data/data/com.arm.malideveloper.openglessdk.projectedLights/files/render_scene_shader.frag")
45 #define LIGHT_SOURCE_SCALING_FACTOR (0.3f)
47 #define MODEL_Y_POSITION (-3.0f)
49 #define MODEL_Y_ROTATION_ANGLE_IN_DEGREES (60.0f)
51 #define NEAR_PLANE (1.0f)
53 #define PLANE_SCALING_FACTOR (10.0f)
55 #define SPOT_LIGHT_ANGLE_IN_DEGREES (20.0f)
57 #define SPOT_LIGHT_TRANSLATION_RADIUS (3.0f)
59 #define TEXTURE_UNIT_FOR_COLOR_TEXTURE (0)
61 #define TEXTURE_UNIT_FOR_SHADOW_MAP_TEXTURE (1)
63 #define VERTEX_SHADER_FILE_NAME ("/data/data/com.arm.malideveloper.openglessdk.projectedLights/files/render_scene_shader.vert")
Vec4f spotLightPositionInEyeSpace
GLint uniformDirectionalLightAmbient
GLint uniformModelViewMatrix
RenderSceneProgramLocations()
GLuint coordinatesBufferObjectId
ProgramAndShaderObjectIds()
Matrix modelViewProjectionMatrix
GLint uniformSpotLightCosAngle
GLuint vertexArrayObjectId
Functions for manipulating matrices.
GLuint framebufferObjectId
GLint uniformNormalMatrix
GLuint depthTextureObjectId
GLint uniformSpotLightLookAtPointInEyeSpace
GLint uniformDirectionalLightPosition
GLint uniformModelViewProjectionMatrix
GLint uniformColorTexture
A 3D floating point vector.
RenderGeometryObjects renderPlane
GLint attributeVertexNormals
ModelViewProperties planeViewProperties
ModelViewProperties planeViewProperties
GLint uniformSpotLightColor
Matrix viewToDepthTextureMatrix
GLint attributeVertexCoordinates
GLuint normalsBufferObjectId
GLint uniformViewToColorTextureMatrix
Matrix viewToColorTextureMatrix
int numberOfElementsInCoordinatesArray
GLuint colorTextureObjectId
GLint uniformDirectionalLightColor
int numberOfElementsInNormalsArray
Vec4f spotLightLookAtPointInEyeSpace
GLint uniformViewToDepthTextureMatrix
typedef GLfloat(GL_APIENTRYP PFNGLGETPATHLENGTHNVPROC)(GLuint path
ModelViewProperties cubeViewProperties
GLuint vertexShaderObjectId
GLint uniformGeometryColor
typedef GLuint(GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC)(GLuint count
ModelViewProperties cubeViewProperties
A 4D floating point vector.
GLint uniformSpotLightPositionInEyeSpace
GLuint fragmentShaderObjectId
RenderGeometryObjects renderCube