shadercompiler
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
shadercompiler [2021/05/02 17:40] – old revision restored (2021/05/02 17:37) 73.95.178.156 | shadercompiler [2021/05/02 17:41] – old revision restored (2021/05/02 17:38) 73.95.178.156 | ||
---|---|---|---|
Line 5: | Line 5: | ||
Consider this code: | Consider this code: | ||
- | < | + | < |
#pragma shader_feature_local_fragment _ _ALBEDO; | #pragma shader_feature_local_fragment _ _ALBEDO; | ||
TEXTURE2D(_Albedo); | TEXTURE2D(_Albedo); | ||
Line 33: | Line 33: | ||
* Make sure you always sample the texture associated with the sampler so it doesn' | * Make sure you always sample the texture associated with the sampler so it doesn' | ||
- | < | + | < |
result *= saturate(1 + SAMPLE_TEXTURE2D_LOD(_Albedo, | result *= saturate(1 + SAMPLE_TEXTURE2D_LOD(_Albedo, | ||
return result; | return result; |
shadercompiler.txt · Last modified: 2025/01/15 04:35 by 127.0.0.1