Exemplo n.º 1
0
        public override void UpdateShaderPermutationEntry(ForwardLightingRenderFeature.LightShaderPermutationEntry shaderEntry)
        {
            // TODO: Some kind of sort?

            foreach (var cubemap in lightShaderGroupsPerSkybox)
            {
                shaderEntry.EnvironmentLights.Add(cubemap.Value);
            }
        }
Exemplo n.º 2
0
        public override void UpdateShaderPermutationEntry(ForwardLightingRenderFeature.LightShaderPermutationEntry shaderEntry)
        {
            // Sort to make sure we generate the same permutations
            lightShaderGroups.Sort(LightShaderGroupComparer.Default);

            foreach (var lightShaderGroup in lightShaderGroups)
            {
                shaderEntry.DirectLightGroups.Add(lightShaderGroup.Value);
            }
        }
Exemplo n.º 3
0
 public abstract void UpdateShaderPermutationEntry(ForwardLightingRenderFeature.LightShaderPermutationEntry shaderEntry);
 public override void UpdateShaderPermutationEntry(ForwardLightingRenderFeature.LightShaderPermutationEntry shaderEntry)
 {
     shaderEntry.DirectLightGroups.Add(pointGroup);
     shaderEntry.DirectLightGroups.Add(spotGroup);
 }
Exemplo n.º 5
0
 public override void UpdateShaderPermutationEntry(ForwardLightingRenderFeature.LightShaderPermutationEntry shaderEntry)
 {
     // Always merge ambient lighting code to avoid shader permutations
     shaderEntry.EnvironmentLights.Add(lightShaderGroup);
 }