Hi,
I look for very simple examples for different objects to learn easy.
The ShaderDemo is very complex for me, and I discover this video:
http://www.youtube.com/watch?v=R2qwSk5Rk1o
It is micro example for the Shader using.
But when I try it - it does not work. Nothing! Like the Code it the Shader are not compiled generally, because I try to wright erroneous commands and it did not detect them.
And so, the RenderNet displays as no Shader object. Why?
Sorry for the stupid question, but I have too little tutorial information.
I attach my try project - it not work. But I discover another possibility - to code the RenderVertexExpression - it seems that I can achieve the same things as when the Shader is used! Why the Shader must be used?
P.S. May be the problem is in Version which I use - 3.0.0b, in the video is used old version of ZGE.
for Shader
Moderator: Moderators
for Shader
- Attachments
-
- prb7a.zgeproj
- unsuccessful Shader example
- (1.4 KiB) Downloaded 474 times
Hmm,
Could you try the "ShaderDemo.zgeproj" example ( it's located in the Projects folder )? It should look like the screenshot below.
K
Could you try the "ShaderDemo.zgeproj" example ( it's located in the Projects folder )? It should look like the screenshot below.
Correct. Anything that you can do using Shaders ( using the GPU ), you can do without Shaders as well ( using the CPU ). But in general, using the GPU will be much faster then using the CPU. So it's purely for performance reasons.milen_zge wrote:It seems that I can achieve the same things as when the Shader is used! Why the Shader must be used?
K
- Attachments
-
- ShaderDemo.png (55.53 KiB) Viewed 6567 times