CultMath: a Blender ramp table has 257 entries (size + 1 at i / 256); the oracle samples it so, and the oracle test leaves unread operands unread
Builds. Fixtures and CultMath.Cycles.glsl are still to come. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
892cfbaa6a
commit
ddca0252e6
6 changed files with 10 additions and 6 deletions
|
|
@ -368,7 +368,8 @@ public static partial class math
|
|||
/// <summary>
|
||||
/// Where a Color Ramp of `size` table entries is read at t: (index, weight), the lower entry and the
|
||||
/// weight of the next one. The colour is table[index] when weight is 0 and
|
||||
/// (1 - weight) table[index] + weight table[index + 1] otherwise. The ramp table itself is the caller's.
|
||||
/// (1 - weight) table[index] + weight table[index + 1] otherwise. The ramp table itself is the caller's;
|
||||
/// Blender's holds 257 entries, the ramp sampled at i / 256.
|
||||
/// </summary>
|
||||
public static float2 cycles_ramp_index(float t, int size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue