ajon542 / GameEngine

Experimenting with OpenTK inside WPF
0 stars 0 forks source link

Passing Matrix4 to ads-frag.glsl which expects Vec3 #1

Closed ajon542 closed 8 years ago

ajon542 commented 8 years ago

In the ADSExample we are passing a Matrix4 to the fragment shader which is expecting a Vec3.

ajon542 commented 8 years ago

Not entirely sure why this isn't an error or why it appears to work. Definitely something interesting to investigate.

ajon542 commented 8 years ago

This is an interesting issue because if we then pass in the eye position things don't appear to work. The problem here is there is no example to compare against so I don't even know what to expect from this shader. It would be nice if samples from the net provided an example scene to compare against.