AndrewRayCode / ShaderFrog-Runtime

Runtime library for ShaderFrog
78 stars 16 forks source link

Why no default normal, uv, color, tangent in a shader? #4

Closed bhouston closed 9 years ago

bhouston commented 9 years ago

It may be useful to have these in the default shader template as it makes it easier to write a useful shader. They could even be commented out?

bhouston commented 9 years ago

I'd suggest a more useful initial template or a choice of a template scene or an empty shader. Right now you are offering an empty shader. For Clara.io we have empty scenes and a lot of examples that you can use to get going right away.

AndrewRayCode commented 9 years ago

very good idea, will do :+1:

AndrewRayCode commented 9 years ago

Here's a proposed default shader, any thoughts?

http://shaderfrog.com/app/view/97 (no current way to link to a shader source - so hit the source button)

bhouston commented 9 years ago

Pretty sweet. That is a lot better base to start from. The reason is people hate reading documentation so having a self-explanatory example like this will help tremendously.

AndrewRayCode commented 9 years ago

Deployed