草庐IT

lightPosition

全部标签

android - libgdx 点光源不适用于生成的网格

我一直在尝试阐明由以下内容生成的平面网格:privateModelcreatePlane(floatw,floath,Texturetexture){Meshmesh=newMesh(true,4,6,newVertexAttribute(Usage.Position,3,"a_position"),newVertexAttribute(Usage.TextureCoordinates,2,"a_texCoord0"),newVertexAttribute(Usage.Normal,3,"a_normal"));floatw2=w*this.CELL_SIZE;floath2=h*th