initial diffuse lit sprite effect
							parent
							
								
									f6f78eccbb
								
							
						
					
					
						commit
						4687d57b28
					
				
							
								
								
									
										2
									
								
								Kav
								
								
								
								
							
							
								
								
								
								
								
								
							
						
						
									
										2
									
								
								Kav
								
								
								
								
							|  | @ -1 +1 @@ | ||||||
| Subproject commit ae445d94d3ad642cbda297ab97349f6f53090151 | Subproject commit 47242e4f52d11b16ec4bc5b630d5d58869dedd92 | ||||||
|  | @ -246,10 +246,10 @@ namespace KavTest | ||||||
| 
 | 
 | ||||||
|             WorldBuilder.SendMessage(new BillboardSpriteSpawnMessage( |             WorldBuilder.SendMessage(new BillboardSpriteSpawnMessage( | ||||||
|                 mushroomGuyTexture, |                 mushroomGuyTexture, | ||||||
|                 new Vector3(3, 1, 10), |                 new Vector3(3, -2, 8), | ||||||
|                 1f, |                 0f, | ||||||
|                 Vector2.One, |                 new Vector2(mushroomGuyTexture.Width, mushroomGuyTexture.Height) * 0.025f, | ||||||
|                 Kav.SpriteBillboardConstraint.Horizontal |                 Kav.SpriteBillboardConstraint.Full | ||||||
|             )); |             )); | ||||||
| 
 | 
 | ||||||
|             // WorldBuilder.SendMessage(new StaticModelSpawnMessage( |             // WorldBuilder.SendMessage(new StaticModelSpawnMessage( | ||||||
|  |  | ||||||
|  | @ -22,7 +22,7 @@ namespace KavTest.Messages | ||||||
|             SpriteBillboardConstraint billboardConstraint |             SpriteBillboardConstraint billboardConstraint | ||||||
|         ) { |         ) { | ||||||
|             Texture = texture; |             Texture = texture; | ||||||
|             Origin = new Vector2(texture.Width / 2, texture.Height / 2); |             Origin = new Vector2(texture.Width / 2, texture.Height); | ||||||
|             Position = position; |             Position = position; | ||||||
|             Rotation = rotation; |             Rotation = rotation; | ||||||
|             Scale = scale; |             Scale = scale; | ||||||
|  |  | ||||||
|  | @ -204,7 +204,10 @@ namespace KavTest.Renderers | ||||||
|                     BillboardTarget, |                     BillboardTarget, | ||||||
|                     camera, |                     camera, | ||||||
|                     ModelTransforms, |                     ModelTransforms, | ||||||
|                     Sprites() |                     Sprites(), | ||||||
|  |                     AmbientLight, | ||||||
|  |                     PointLights, | ||||||
|  |                     DirectionalLight() | ||||||
|                 ); |                 ); | ||||||
| 
 | 
 | ||||||
|                 GraphicsDevice.SetRenderTarget(null); |                 GraphicsDevice.SetRenderTarget(null); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue