Not logged inOpenClonk Forum
Up Topic clonk shader fails

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to PeterW
If we can confirm that this works - yes, possibly. Or I'll put the math into engine.

I'm still a bit confused why representing 1/3 in floats hasn't become a problem yet. Half-speculating that the driver might actually optimize out the divisor when realizing that the surface has a size divisible by 3 or something...

Edit: Just checked - the GLSL 1.10 specs (7 years old!) already states that:

> An integral constant expression can be one of
> * a literal integer value
> ...
> * an expression whose operands are integral constant expressions, including constructors, but excluding function calls.


This should be completely legal...

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill