Where can i find a good article that explains how to design a simple program in C++ and make the equivalent in GLSL? The problem is that in C++ i have the "new" for creating new objects. how can I do for example a tree without using "new"? (i know that there are limited variables in a shader, but i want to endup all those variables if necessary).
I'm trying to do that in glsl 1.0 / 1.2 so newer shading languages are not suitable for me. I know that there is no interest in video card vendors on supporting old languages, but i think somewhere there is someone that has worked on this problem.
I want also to query the variables on my graphics card how can i know how many floating points vectors or integer vectors can i use in a GLSL program?
I can't tell why i need it. But if i succed a opensource demo will be released.
C++ to GLSL
C++ to GLSL
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Re: C++ to GLSL
I smell some secret project going on in your basementREDDemon wrote:I can't tell why i need it.
I can't help you on this topic, I'm a complete noob at shaders
Working on game: Marrbles (Currently stopped).
that's not secret. just want to be sure something is possible also in practice terms since theorically everything works. fast reply anyway!
i'm looking at old C tutorials for making tree structures without "objects" but i have some lack about full potential of old GLSL.
I think I need to create an array of structs, but i think there will be obviously some limit to the size of the arrays especially with big structs.
anyway i'm searching on some general tutorial about how to translate from c++ to glsl but there are no tutorials
i'm looking at old C tutorials for making tree structures without "objects" but i have some lack about full potential of old GLSL.
I think I need to create an array of structs, but i think there will be obviously some limit to the size of the arrays especially with big structs.
anyway i'm searching on some general tutorial about how to translate from c++ to glsl but there are no tutorials
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Maybe this'll help you:
http://en.wikipedia.org/wiki/High_Level_Shader_Language
http://en.wikipedia.org/wiki/High_Level_Shader_Language