WebGLSamples / WebGL2Samples

Short and easy to understand samples demonstrating WebGL 2 features
Other
1.02k stars 143 forks source link

draw image space example #158

Closed itsyom closed 7 years ago

itsyom commented 7 years ago

In the draw image space example in fragment shader: color = texture(diffuse, vec2(gl_FragCoord.x,1.0 - gl_FragCoord.y) / u_imageSize); shoule replace 1.0 by u_imageSize.y. Am I right?

shrekshao commented 7 years ago

Yeah I think you are correct. Would you mind opening a pull request for this? I'd be happy to merge it in

shrekshao commented 7 years ago

NVM, I've fixed this issue. Thank you!

itsyom commented 7 years ago

Thank you!