|
@@ -582,8 +582,7 @@ void BillboardSet::UpdateVertexBuffer(const FrameInfo& frame)
|
|
|
unsigned color = billboard.color_.ToUInt();
|
|
unsigned color = billboard.color_.ToUInt();
|
|
|
|
|
|
|
|
float rotationMatrix[2][2];
|
|
float rotationMatrix[2][2];
|
|
|
- rotationMatrix[0][0] = Cos(billboard.rotation_);
|
|
|
|
|
- rotationMatrix[0][1] = Sin(billboard.rotation_);
|
|
|
|
|
|
|
+ SinCos(billboard.rotation_, rotationMatrix[0][1], rotationMatrix[0][0]);
|
|
|
rotationMatrix[1][0] = -rotationMatrix[0][1];
|
|
rotationMatrix[1][0] = -rotationMatrix[0][1];
|
|
|
rotationMatrix[1][1] = rotationMatrix[0][0];
|
|
rotationMatrix[1][1] = rotationMatrix[0][0];
|
|
|
|
|
|
|
@@ -636,8 +635,7 @@ void BillboardSet::UpdateVertexBuffer(const FrameInfo& frame)
|
|
|
unsigned color = billboard.color_.ToUInt();
|
|
unsigned color = billboard.color_.ToUInt();
|
|
|
|
|
|
|
|
float rot2D[2][2];
|
|
float rot2D[2][2];
|
|
|
- rot2D[0][0] = Cos(billboard.rotation_);
|
|
|
|
|
- rot2D[0][1] = Sin(billboard.rotation_);
|
|
|
|
|
|
|
+ SinCos(billboard.rotation_, rot2D[0][1], rot2D[0][0]);
|
|
|
rot2D[1][0] = -rot2D[0][1];
|
|
rot2D[1][0] = -rot2D[0][1];
|
|
|
rot2D[1][1] = rot2D[0][0];
|
|
rot2D[1][1] = rot2D[0][0];
|
|
|
|
|
|