mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-29 00:00:03 +02:00
* Valve220: fix patch.CapTexture (patch had invalid control points: define basis)
* Curve->Simple patch mesh: CapTexture() instead of NaturalTexture() for convinience
This commit is contained in:
+5
-1
@@ -660,6 +660,7 @@ void Patch::CapTexture(){
|
||||
Vector3 normal = Calculate_AvgNormal();
|
||||
TextureProjection projection;
|
||||
TexDef_Construct_Default( projection );
|
||||
ComputeAxisBase( normal, projection.m_basis_s, projection.m_basis_t ); /* Valve220 */
|
||||
ProjectTexture( projection, normal );
|
||||
#endif
|
||||
}
|
||||
@@ -1563,7 +1564,10 @@ void Patch::ConstructPrefab( const AABB& aabb, EPatchPrefab eType, int axis, std
|
||||
InsertRemove( true, false, true );
|
||||
}
|
||||
|
||||
NaturalTexture();
|
||||
if ( eType == ePlane )
|
||||
CapTexture();
|
||||
else
|
||||
NaturalTexture();
|
||||
}
|
||||
|
||||
void Patch::RenderDebug( RenderStateFlags state ) const {
|
||||
|
||||
Reference in New Issue
Block a user