mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 02:40:37 +01:00
Fix typo in spot attenuation
This commit is contained in:
parent
729cccba5d
commit
6c1948d593
1 changed files with 1 additions and 1 deletions
|
|
@ -805,7 +805,7 @@ static struct ureg calculate_light_attenuation( struct tnl_program *p,
|
|||
struct ureg slt = get_temp(p);
|
||||
|
||||
emit_normalize_vec3( p, spot, spot_dir ); /* XXX: precompute! */
|
||||
emit_op2(p, VP_OPCODE_DP3, spot, 0, negate(VPpli), spot_dir);
|
||||
emit_op2(p, VP_OPCODE_DP3, spot, 0, negate(VPpli), spot);
|
||||
emit_op2(p, VP_OPCODE_SLT, slt, 0, swizzle1(spot_dir,W), spot);
|
||||
emit_op2(p, VP_OPCODE_POW, spot, 0, spot, swizzle1(attenuation, W));
|
||||
emit_op2(p, VP_OPCODE_MUL, att, 0, slt, spot);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue