[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Public WebGL] OES_texture_float different behavior



http://www.ibiblio.org/e-notes/webgl/test/n-test.html

After reading then rendering to the same RGB (3 components) float32 texture (attached to FBO) 
    vec3 r = texture2D(samp, vTexCoord).xyz; 
    gl_FragColor = vec4(r, 0. );

it is used as 
    gl_Position = prMatrix * mvMatrix * texture2D(uTexSamp, aPoints );

With OpenGL driver texture values are   (r, 1.) 
and in ANGLE   (r, 0.) 
as I think (I don't see points with ANGLE)

I've fixed this features in "N-body" and this test by writing 
    gl_FragColor = vec4(r, 1. );