Sign in to follow this  
MARS_999

GLSL internal text shaders

Recommended Posts

I was wondering how people are doing their char[] based shaders for GLSL? I tried to, but got an overflow for my char*[]... So do I need to dynamically make this string to allow for a larger amount of chars? Any example would be greatly appreciated. Thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by phantom
errm... I'm treating it the same as I would any other variable amount of text by dynamically allocating the memory


Yeah thats what I am doing... I just had to strcat() due to my string is to long the compiler says...

Share this post


Link to post
Share on other sites
I am including the shader code in the mapeditor code base. To clear up what I am doing. I can load the shader code just fine from a text file format. Which I am doing in my engine. But I am looking to give out my mapeditor to some people to work on and don't want my shaders all over the place as of yet... :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this