- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/bsp/VBSPGeometry.cpp
r12292 r13041 31 31 disp_texcoord_array = new Vec2Array(); 32 32 disp_vertex_attr_array = new Vec4Array(); 33 33 34 34 // Create a second primitive set for drawing indexed triangles, which is 35 35 // the quickest method for drawing the displacement surfaces … … 43 43 44 44 45 bool VBSPGeometry::doesEdgeExist(int row, int col, int direction, 45 bool VBSPGeometry::doesEdgeExist(int row, int col, int direction, 46 46 int vertsPerEdge) 47 47 { … … 279 279 float alphaBlend; 280 280 unsigned char edgeBits; 281 281 282 282 283 283 // Get the texture info for this face … … 286 286 287 287 // Get the texture vectors and offsets. These are used to calculate 288 // texture coordinates 288 // texture coordinates 289 289 texU.set(currentTexInfo.texture_vecs[0][0], 290 290 currentTexInfo.texture_vecs[0][1], … … 300 300 texV *= 39.37f; 301 301 302 // Get the size of the texture involved, as the planar texture projection 302 // Get the size of the texture involved, as the planar texture projection 303 303 // assumes non-normalized texture coordinates 304 304 texUScale = 1.0f / (float)currentTexData.texture_width; … … 405 405 // Calculate the displaced vertex 406 406 dispVertex = 407 dispVertInfo.displace_vec * 407 dispVertInfo.displace_vec * 408 408 (dispVertInfo.displace_dist * 0.0254); 409 409 dispVertex += flatVertex; … … 548 548 549 549 // Get the texture vectors and offsets. These are used to calculate 550 // texture coordinates 550 // texture coordinates 551 551 texU.set(currentTexInfo.texture_vecs[0][0], 552 552 currentTexInfo.texture_vecs[0][1],
