Sign in to follow this  
Followers 0
WiredCat

Horror reading shaders without defined default precision ES 3

3 posts in this topic

Basically i have to rewrite 120 shaders and in all cases i add "highp " before...

Maybe theres other way around? : )

0

Share this post


Link to post
Share on other sites

These are the kind of things where regular expressions come in handy. On linux I would probably use something like sed, but many editors and programming languages nowadays support regex as well. If you're not comfortable with regex you could always write a simple script in the language of your choice.

However the bottom line is always; can you whip it up quicker than just going into zombie mode and cut&paste the damn thing?

0

Share this post


Link to post
Share on other sites
precision highp float;    // Changes all floats to be default highp unless manually specified otherwise.

L. Spiro
2

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  
Followers 0