mirror of
https://github.com/GTNewHorizons/GTNHLib.git
synced 2026-11-28 07:35:51 +00:00
Add setForgeNormal
This commit is contained in:
1 parent
83d3ddb3d9
commit
2ed32513e7
2 files changed
+10
No files matched your search
@@ -99,6 +99,11 @@ public class ModelQuad implements ModelQuadViewMutable {
|
||||
this.hasAmbientOcclusion = hasAmbientOcclusion;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setForgeNormal(int idx, int normal) {
|
||||
this.data[vertexOffset(idx) + NORMAL_INDEX] = normal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setShaderBlockId(int shaderBlockId) {
|
||||
this.shaderBlockId = shaderBlockId;
|
||||
|
||||
+5
@@ -65,5 +65,10 @@ public interface ModelQuadViewMutable extends ModelQuadView {
|
||||
|
||||
void setHasAmbientOcclusion(boolean hasAmbientOcclusion);
|
||||
|
||||
/**
|
||||
* Sets the packed normal vector embedded in the vertex data.
|
||||
*/
|
||||
void setForgeNormal(int idx, int normal);
|
||||
|
||||
void setShaderBlockId(int shaderBlockId);
|
||||
}
|
||||
Reference in new issue
Block a user