mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:26:43 +00:00 
			
		
		
		
	Start fixing landscape rendering for x86_64
Signed-off-by: Josua Grawitter <grewater@googlemail.com> git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@131 ea6a568a-9f4f-0410-981a-c910a81bb256
This commit is contained in:
		
							parent
							
								
									00898117c7
								
							
						
					
					
						commit
						1b4dd5fd02
					
				
					 2 changed files with 8 additions and 7 deletions
				
			
		|  | @ -108,6 +108,7 @@ struct AlphaInfo | |||
| static assert(AlphaInfo.sizeof == 6*4); | ||||
| 
 | ||||
| // Info about each submesh
 | ||||
| // If you change this struct please check whether align(1) still fits.
 | ||||
| align(1) | ||||
| struct MeshInfo | ||||
| { | ||||
|  | @ -124,13 +125,13 @@ struct MeshInfo | |||
|   // Size and offset of the vertex buffer
 | ||||
|   ulong vertBufSize, vertBufOffset; | ||||
| 
 | ||||
|   // Texture name. Index to the string table.
 | ||||
|   int texName = -1; | ||||
| 
 | ||||
|   // Number and offset of AlphaInfo blocks
 | ||||
|   int alphaNum; | ||||
|   ulong alphaOffset; | ||||
| 
 | ||||
|   // Texture name. Index to the string table.
 | ||||
|   int texName = -1; | ||||
| 
 | ||||
|   // Fill the given vertex buffer
 | ||||
|   void fillVertexBuffer(float vdest[]) | ||||
|   { | ||||
|  |  | |||
|  | @ -63,13 +63,13 @@ struct MeshInfo | |||
|   // Size and offset of the vertex buffer
 | ||||
|   int64_t vertBufSize, vertBufOffset; | ||||
| 
 | ||||
|   // Texture name. Index to the string table.
 | ||||
|   int32_t texName; | ||||
| 
 | ||||
|   // Number and offset of AlphaInfo blocks
 | ||||
|   int32_t alphaNum; | ||||
|   uint64_t alphaOffset; | ||||
| 
 | ||||
|   // Texture name. Index to the string table.
 | ||||
|   int32_t texName; | ||||
| 
 | ||||
|   inline void fillVertexBuffer(float *buffer, uint64_t size) const | ||||
|   { | ||||
|     d_terr_fillVertexBuffer(this, buffer, size); | ||||
|  | @ -309,7 +309,7 @@ extern "C" | |||
|     Ogre::Pass* np = mat->getTechnique(0)->getPass(0); | ||||
|     np->setLightingEnabled(false); | ||||
|     np->createTextureUnitState("_land_default.dds") | ||||
|       ->setTextureScale(scale,scale);     | ||||
|       ->setTextureScale(scale,scale); | ||||
|   } | ||||
| 
 | ||||
|   uint8_t *terr_makeAlphaLayer(const char* name, int32_t width) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue