GLSL optimizer

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
Virion
Competition winner
Posts: 2149
Joined: Mon Dec 18, 2006 5:04 am

GLSL optimizer

Post by Virion »

the code is not written by me :lol: i'm just sharing the link here
http://aras-p.info/blog/2010/09/29/glsl-optimizer

speeeed!!!!!
My company: https://kloena.com
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

Note that it's talking about cross compiling from HLSL to GLSL, and it's also talking about mobile devices. If you're writing the GLSL, this shouldn't be necessary. Keep in mind that the article states that "mobile platform drivers are quite bad at optimizing GLSL." I'd guess that PC drivers are good at such optimization. High level shader languages like HLSL, GLSL, and Cg are designed to be automatically optimized at runtime by the video card.
Post Reply