mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
debug crashfix. append .xyz so it knows 'yes, i do mean float4 to float3'
This commit is contained in:
parent
4275e340f4
commit
7eb6f767d0
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ float defineBoxSpaceInfluence(Surface surface, ProbeData probe, float3 wsEyeRay)
|
||||||
float3 boxProject(Surface surface, ProbeData probe)
|
float3 boxProject(Surface surface, ProbeData probe)
|
||||||
{
|
{
|
||||||
float3 RayLS = mul(probe.worldToLocal, float4(surface.R,0.0)).xyz;
|
float3 RayLS = mul(probe.worldToLocal, float4(surface.R,0.0)).xyz;
|
||||||
float3 PositionLS = mul( probe.worldToLocal, float4(surface.P,1.0));
|
float3 PositionLS = mul( probe.worldToLocal, float4(surface.P,1.0)).xyz;
|
||||||
|
|
||||||
float3 unit = probe.boxMax-probe.boxMin;
|
float3 unit = probe.boxMax-probe.boxMin;
|
||||||
float3 plane1vec = (unit - PositionLS) / RayLS;
|
float3 plane1vec = (unit - PositionLS) / RayLS;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue