File tree 1 file changed +1
-3
lines changed
src/main/java/codechicken/lib/render/pipeline/attribute
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ public class LightCoordAttribute extends VertexAttribute<LC[]> {
14
14
public static final AttributeKey <LC []> attributeKey = AttributeKey .create ("light_coord" , LC []::new );
15
15
16
16
private final Vector3 vec = new Vector3 ();//for computation
17
- private final Vector3 pos = new Vector3 ();
18
17
19
18
private LC [] lcRef ;
20
19
@@ -29,7 +28,6 @@ public boolean load(CCRenderState ccrs) {
29
28
return lcRef != null ;
30
29
}
31
30
32
- pos .set (ccrs .lightMatrix .pos );
33
31
ccrs .pipeline .addDependency (ccrs .sideAttrib );
34
32
ccrs .pipeline .addRequirement (Transformation .operationIndex );
35
33
return true ;
@@ -40,7 +38,7 @@ public void operate(CCRenderState ccrs) {
40
38
if (lcRef != null ) {
41
39
ccrs .lc .set (lcRef [ccrs .vertexIndex ]);
42
40
} else {
43
- ccrs .lc .compute (vec .set (ccrs .vert .vec ). subtract ( pos ) , ccrs .side );
41
+ ccrs .lc .compute (vec .set (ccrs .vert .vec ), ccrs .side );
44
42
}
45
43
}
46
44
}
You can’t perform that action at this time.
0 commit comments