Horror reading shaders without defined default precision ES 3

Started by
2 comments, last by L. Spiro 6 years, 11 months ago

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

Maybe theres other way around? : )

Advertisement

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?

Ok I guess I need to write shader compile error parser and apply fixes
precision highp float;    // Changes all floats to be default highp unless manually specified otherwise.

L. Spiro

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid

This topic is closed to new replies.

Advertisement