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 sampler2D equirectangularMap;
|
||||
|
@ -28,7 +28,7 @@ vec2 SampleSphericalMap(vec3 v)
|
|||
void main()
|
||||
{
|
||||
// Normalize local position
|
||||
vec2 uv = SampleSphericalMap(normalize(fragPos));
|
||||
vec2 uv = SampleSphericalMap(normalize(fragPosition));
|
||||
|
||||
// Fetch color from texture map
|
||||
vec3 color = texture(equirectangularMap, uv).rgb;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue