GPU/Procedural Texture Generation: Difference between revisions
Steveice10 (talk | contribs) mNo edit summary |
Steveice10 (talk | contribs) mNo edit summary |
||
Line 16: | Line 16: | ||
* Frequency | * Frequency | ||
* Phase | * Phase | ||
These parameters are configured starting [[GPU/Internal_Registers#GPUREG_TEXUNIT3_PROCTEX1|here]]. | |||
== Repeat Module == | == Repeat Module == | ||
Line 22: | Line 24: | ||
== Base Shape == | == Base Shape == | ||
The U’’ and V’’ coordinates are used to generate a scalar value in the range [0;1] from the wrapped coordinates using one of six functions | The U’’ and V’’ coordinates are used to generate a scalar value in the range [0;1] from the wrapped coordinates using one of six functions documented [[GPU/Internal_Registers#GPUREG_TEXUNIT3_PROCTEX0|here]]. | ||
The output of this function is named "g". | The output of this function is named "g". | ||
Line 38: | Line 34: | ||
* a triangle function | * a triangle function | ||
The final texel color is determined by using the value of F(g) as an index into a configurable lookup table | The final texel color is determined by using the value of F(g) as an index into a configurable [[GPU/Internal_Registers#GPUREG_PROCTEX_LUT|lookup table]]. |