Skip to content

Commit

Permalink
remove unused functions (#15434)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltakosh authored Aug 14, 2024
1 parent 6881790 commit 90d87be
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1077,11 +1077,9 @@ export class PBRMetallicRoughnessBlock extends NodeMaterialBlock {
let worldNormalVarName = this.worldNormal.associatedVariableName;
if (this.generateOnlyFragmentCode) {
worldPosVarName = state._getFreeVariableName("globalWorldPos");
state._emitFunction("pbr_globalworldpos", `vec3${state.fSuffix} ${worldPosVarName};\n`, comments);
state.compilationString += `${worldPosVarName} = ${this.worldPosition.associatedVariableName}.xyz;\n`;

worldNormalVarName = state._getFreeVariableName("globalWorldNormal");
state._emitFunction("pbr_globalworldnorm", `vec3${state.fSuffix} ${worldNormalVarName};\n`, comments);
state.compilationString += `${worldNormalVarName} = ${this.worldNormal.associatedVariableName}.xyz;\n`;

state.compilationString += state._emitCodeFromInclude("shadowsVertex", comments, {
Expand Down

0 comments on commit 90d87be

Please sign in to comment.