I’ve created a simple scene in three.js, but it doesn’t works with canvas renderer (but it should work…)
Code: http://jsfiddle.net/PRkcJ/
It only works, if I use webGLrenderer. But why?
Thanks in advance,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you are getting is a white plane on a white background.
The light position for directional lights is treated as a direction vector and it must be of unit length.
Your code works if you do something like this:
Fiddle: http://jsfiddle.net/PRkcJ/1/