Support float texture data on OpenGL ES 2.0
This commit is contained in:
parent
35a6e9a074
commit
7b8965eb38
7 changed files with 23 additions and 14 deletions
|
@ -9,7 +9,7 @@
|
|||
#version 330
|
||||
|
||||
// Input vertex attributes (from vertex shader)
|
||||
in vec3 fragPos;
|
||||
in vec3 fragPosition;
|
||||
|
||||
// Input uniform values
|
||||
uniform samplerCube environmentMap;
|
||||
|
@ -20,7 +20,7 @@ out vec4 finalColor;
|
|||
void main()
|
||||
{
|
||||
// Fetch color from texture map
|
||||
vec3 color = texture(environmentMap, fragPos).rgb;
|
||||
vec3 color = texture(environmentMap, fragPosition).rgb;
|
||||
|
||||
// Apply gamma correction
|
||||
color = color/(color + vec3(1.0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue