|
|
@ -73,7 +73,8 @@ int main(void) |
|
|
|
// Get shader locations |
|
|
|
shader.locs[SHADER_LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp"); |
|
|
|
shader.locs[SHADER_LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos"); |
|
|
|
|
|
|
|
shader.locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform"); |
|
|
|
|
|
|
|
// Set shader value: ambient light level |
|
|
|
int ambientLoc = GetShaderLocation(shader, "ambient"); |
|
|
|
SetShaderValue(shader, ambientLoc, (float[4]){ 0.2f, 0.2f, 0.2f, 1.0f }, SHADER_UNIFORM_VEC4); |
|
|
|