Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Based on lightmap size
- s:/myBSP.LightMapTexture.width
- t:/myBSP.LightMapTexture.Height
- 'Test UV for lightmap
- If face.LightMap >= 0 Then
- 'VertexTexCoords(surf, vertCount, (s - face.LightMinUV.x) / (face.LightDist.x + 1), (t - face.LightMinUV.y) / (face.LightDist.y + 1), 0, 1)
- VertexTexCoords(surf, vertCount, (face.LightMapPos.x / Float(myBSP.LightMapTexture.width)) + ((s - face.LightMinUV.x) / (face.LightDist.x + 1)), (face.LightMapPos.y / Float(myBSP.LightMapTexture.Height)) + (t - face.LightMinUV.y) / (face.LightDist.y + 1), 0, 1)
- Else
- If Not mipTex.Name.StartsWith("*") Then VertexColor(surf, vertCount, 1, 1, 1)
- EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement