Quantcast
Viewing all articles
Browse latest Browse all 388

ViewProjectMatrix, GLSL

Hi!

 

I have small quest for bjs-jedi-knight's Image may be NSFW.
Clik here to view.
:)

 

If we need get screen position of point in 3d we make something like this:
gl_Position = worldViewProjection * vec4(vPosition, 1.0);

but what we make do, if we need back operation (get 3d point), if we know screen coords and have 3d object geometry?

In BABYLON here help Scene.pick() method, but how looks his analog in GLS?  What algoritm?

p.s. i can make Scene.pick and translate result in Shader, but it will not so fast, as computing in GLSL, i think.

p.p.s. May the BJS-Force be with you  Image may be NSFW.
Clik here to view.
:ph34r:
 


Viewing all articles
Browse latest Browse all 388

Trending Articles