@@ -142,7 +142,7 @@ def forward(self, fragments, meshes, **kwargs) -> torch.Tensor:
142
142
cameras = kwargs .get ("cameras" , self .cameras )
143
143
if cameras is None :
144
144
msg = "Cameras must be specified either at initialization \
145
- or in the forward pass of SoftPhongShader "
145
+ or in the forward pass of HardGouraudShader "
146
146
raise ValueError (msg )
147
147
lights = kwargs .get ("lights" , self .lights )
148
148
materials = kwargs .get ("materials" , self .materials )
@@ -187,7 +187,7 @@ def forward(self, fragments, meshes, **kwargs) -> torch.Tensor:
187
187
cameras = kwargs .get ("cameras" , self .cameras )
188
188
if cameras is None :
189
189
msg = "Cameras must be specified either at initialization \
190
- or in the forward pass of SoftPhongShader "
190
+ or in the forward pass of SoftGouraudShader "
191
191
raise ValueError (msg )
192
192
lights = kwargs .get ("lights" , self .lights )
193
193
materials = kwargs .get ("materials" , self .materials )
@@ -234,7 +234,7 @@ def forward(self, fragments, meshes, **kwargs) -> torch.Tensor:
234
234
cameras = kwargs .get ("cameras" , self .cameras )
235
235
if cameras is None :
236
236
msg = "Cameras must be specified either at initialization \
237
- or in the forward pass of SoftPhongShader "
237
+ or in the forward pass of TexturedSoftPhongShader "
238
238
raise ValueError (msg )
239
239
texels = interpolate_texture_map (fragments , meshes )
240
240
lights = kwargs .get ("lights" , self .lights )
@@ -278,7 +278,7 @@ def forward(self, fragments, meshes, **kwargs) -> torch.Tensor:
278
278
cameras = kwargs .get ("cameras" , self .cameras )
279
279
if cameras is None :
280
280
msg = "Cameras must be specified either at initialization \
281
- or in the forward pass of SoftPhongShader "
281
+ or in the forward pass of HardFlatShader "
282
282
raise ValueError (msg )
283
283
texels = interpolate_vertex_colors (fragments , meshes )
284
284
lights = kwargs .get ("lights" , self .lights )
0 commit comments