The compress() function allows you to tighten the dynamic range of the texture. It adheres to the following syntax:
compress(value,lo,hi)
lo represents the lowest value that will be remapped to and hi the highest.
s with no compression |
Setting the compress() values to compress(s,0,2) will remap a value of 1 to 2 and 0.5 to 1 while leaving 0 unchanged.
s with (0,2) compression. what used to be 1 is now 2 |
Changing the values to compress(s,0.5,1) will remap the value of 0 to 0.5 and 0.5 to 0.75 while leaving 1 untouched.
s with (0.5,1) compression. what used to be 0 is now 0.5 |
No comments:
Post a Comment