We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I usually want to use shadow map to do some postprocessing effects, and i use only one shadow map enabled which set fromLightSource to false.
so ShadowMap.createDerivedCommands will create nothing about the receive commands. But in OIT.js, it shows below:
for (j = 0; j < length; ++j) { command = commands[j]; command = defined(command.derivedCommands.logDepth) ? command.derivedCommands.logDepth.command : command; derivedCommand = (shadowsEnabled && command.receiveShadows) ? command.derivedCommands.oit.shadows.translucentCommand : command.derivedCommands.oit.translucentCommand; executeFunction(derivedCommand, scene, context, passState, debugFramebuffer); }
it will cause error: TypeError: Cannot read property 'translucentCommand' of undefined since command.derivedCommands.oit.shadows is undefined
missing lightShadowMapsEnabled flag while excute the commands?
The text was updated successfully, but these errors were encountered:
@lilleyse any ideas here?
Sorry, something went wrong.
lilleyse
Successfully merging a pull request may close this issue.
I usually want to use shadow map to do some postprocessing effects, and i use only one shadow map enabled which set fromLightSource to false.
so ShadowMap.createDerivedCommands will create nothing about the receive commands.
But in OIT.js, it shows below:
for (j = 0; j < length; ++j) {
command = commands[j];
command = defined(command.derivedCommands.logDepth) ? command.derivedCommands.logDepth.command : command;
derivedCommand = (shadowsEnabled && command.receiveShadows) ? command.derivedCommands.oit.shadows.translucentCommand : command.derivedCommands.oit.translucentCommand;
executeFunction(derivedCommand, scene, context, passState, debugFramebuffer);
}
it will cause error:
TypeError: Cannot read property 'translucentCommand' of undefined
since command.derivedCommands.oit.shadows is undefined
missing lightShadowMapsEnabled flag while excute the commands?
The text was updated successfully, but these errors were encountered: