Work towards using vertex pulling for lighting caps, alignment issues
This commit is contained in:
+2
-2
@@ -446,7 +446,7 @@ pokeJustV ::
|
||||
pokeJustV xdata cp col ptr nv sh = do
|
||||
pokeByteOff ptr (nv * shapeVerxSize) (V4 x y z xdata)
|
||||
pokeByteOff ptr (nv *shapeVerxSize + 4 * floatSize) (toColor8 col)
|
||||
pokeByteOff ptr (nv *shapeVerxSize + 4 * (floatSize + ubyteSize)) (V4 nx ny nz 1)
|
||||
pokeByteOff ptr (nv *shapeVerxSize + 8 * floatSize) (V4 nx ny nz 1)
|
||||
return (nv + 1)
|
||||
where
|
||||
V3 x y z = sh
|
||||
@@ -464,7 +464,7 @@ pokeFlatV ::
|
||||
pokeFlatV xdata norm col ptr nv sh = do
|
||||
pokeByteOff ptr (nv * shapeVerxSize) (V4 x y z xdata)
|
||||
pokeByteOff ptr (nv *shapeVerxSize + 4 * floatSize) (toColor8 col)
|
||||
pokeByteOff ptr (nv *shapeVerxSize + 4 * (floatSize + ubyteSize)) (V4 nx ny nz 1)
|
||||
pokeByteOff ptr (nv *shapeVerxSize + 8 * floatSize) (V4 nx ny nz 1)
|
||||
return (nv + 1)
|
||||
where
|
||||
V3 x y z = sh
|
||||
|
||||
Reference in New Issue
Block a user