Pārlūkot izejas kodu

Corrected function name

texture2D() is deprecated on GLSL 330
pull/118/head
Ray pirms 8 gadiem
vecāks
revīzija
0e29aa2951
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      examples/resources/shaders/glsl330/bloom.fs
  2. +1
    -1
      examples/resources/shaders/glsl330/swirl.fs

+ 1
- 1
examples/resources/shaders/glsl330/bloom.fs Parādīt failu

@ -22,7 +22,7 @@ void main()
{
for (int j = -3; j < 3; j++)
{
sum += texture2D(texture0, fragTexCoord + vec2(j, i)*0.004)*0.25;
sum += texture(texture0, fragTexCoord + vec2(j, i)*0.004)*0.25;
}
}

+ 1
- 1
examples/resources/shaders/glsl330/swirl.fs Parādīt failu

@ -40,7 +40,7 @@ void main (void)
}
tc += center;
vec3 color = texture2D(texture0, tc/texSize).rgb;
vec3 color = texture(texture0, tc/texSize).rgb;
finalColor = vec4(color, 1.0);;
}

Notiek ielāde…
Atcelt
Saglabāt