Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Horror reading shaders without defined default precision ES 3

4: Adsense
  • You cannot reply to this topic
3 replies to this topic

#1 WiredCat   Members   

1426
Like
0Likes
Like

Posted 03 May 2017 - 04:14 AM

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

Maybe theres other way around? : )



#2 Prototype   Members   

1990
Like
0Likes
Like

Posted 03 May 2017 - 05:37 AM

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?



#3 WiredCat   Members   

1426
Like
0Likes
Like

Posted 04 May 2017 - 12:52 PM

Ok I guess I need to write shader compile error parser and apply fixes

#4 L. Spiro   Members   

25547
Like
2Likes
Like

Posted 19 May 2017 - 12:15 PM

precision highp float;    // Changes all floats to be default highp unless manually specified otherwise.

L. Spiro