Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Lights/Shadows/cascadedShadowGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,13 +715,13 @@ export class CascadedShadowGenerator extends ShadowGenerator {
* @param usefulFloatFirst By default the generator will try to use half float textures but if you need precision (for self shadowing for instance), you can use this option to enforce full float texture.
*/
constructor(mapSize: number, light: DirectionalLight, usefulFloatFirst?: boolean) {
super(mapSize, light, usefulFloatFirst);

if (!CascadedShadowGenerator.IsSupported) {
Logger.Error("CascadedShadowMap needs WebGL 2 support.");
return;
}

super(mapSize, light, usefulFloatFirst);

this.usePercentageCloserFiltering = true;
}

Expand Down