Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Shader question

Author
Message
dc740
16
Years of Service
User Offline
Joined: 11th Jul 2008
Location:
Posted: 12th Jul 2008 21:14
Hello, this is my first post and I started using Dark GDK yesterday. I'm trying to understand how the shaders work, so I was playing with the "Advanced Shaders" solution from the Tutorials folder. (yes the same example that is explained on the PDF)

I added some code to make the camera move with the mouse and the keyboard.
My question is: why does the screen become blue when I'm not looking at the sphere? when I look at the sphere then everything is fine and the background is black again


it's the same example of the tutorial, I only changed the main loop with this code:



as you can see I didn't change the shader code, I just added funtionality to add movement to the camera.

Is this a normal behavior? why does it happen?

Login to post a reply

Server time is: 2024-11-20 15:17:47
Your offset time is: 2024-11-20 15:17:47