MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetShaderData

Method SetShaderData

Source/Engine/Renderer/RenderList.cpp:102–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void RenderDirectionalLightData::SetShaderData(ShaderLightData& data, bool useShadow) const
103{
104 data.SpotAngles.X = -2.0f;
105 data.SpotAngles.Y = 1.0f;
106 data.SourceRadius = 0;
107 data.SourceLength = 0;
108 data.Color = Color;
109 data.MinRoughness = Math::Max(MinRoughness, MIN_ROUGHNESS);
110 data.Position = Float3::Zero;
111 data.ShadowsBufferAddress = useShadow ? ShadowsBufferAddress : 0;
112 data.Direction = -Direction;
113 data.Radius = 0;
114 data.FalloffExponent = 0;
115 data.InverseSquared = 0;
116 data.RadiusInv = 0;
117}
118
119bool RenderLocalLightData::CanRenderShadow(const RenderView& view) const
120{

Callers 7

RenderLightsMethod · 0.80
RenderRadialLightMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderShadowMaskMethod · 0.80
RenderMethod · 0.80
BindMethod · 0.80

Calls 4

Float4Class · 0.85
StreamingTextureMethod · 0.80
MaxFunction · 0.50
InvertFunction · 0.50

Tested by

no test coverage detected