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( | ||||
|                 mushroomGuyTexture, | ||||
|                 new Vector3(3, 1, 10), | ||||
|                 1f, | ||||
|                 Vector2.One, | ||||
|                 Kav.SpriteBillboardConstraint.Horizontal | ||||
|                 new Vector3(3, -2, 8), | ||||
|                 0f, | ||||
|                 new Vector2(mushroomGuyTexture.Width, mushroomGuyTexture.Height) * 0.025f, | ||||
|                 Kav.SpriteBillboardConstraint.Full | ||||
|             )); | ||||
| 
 | ||||
|             // WorldBuilder.SendMessage(new StaticModelSpawnMessage( | ||||
|  |  | |||
|  | @ -22,7 +22,7 @@ namespace KavTest.Messages | |||
|             SpriteBillboardConstraint billboardConstraint | ||||
|         ) { | ||||
|             Texture = texture; | ||||
|             Origin = new Vector2(texture.Width / 2, texture.Height / 2); | ||||
|             Origin = new Vector2(texture.Width / 2, texture.Height); | ||||
|             Position = position; | ||||
|             Rotation = rotation; | ||||
|             Scale = scale; | ||||
|  |  | |||
|  | @ -204,7 +204,10 @@ namespace KavTest.Renderers | |||
|                     BillboardTarget, | ||||
|                     camera, | ||||
|                     ModelTransforms, | ||||
|                     Sprites() | ||||
|                     Sprites(), | ||||
|                     AmbientLight, | ||||
|                     PointLights, | ||||
|                     DirectionalLight() | ||||
|                 ); | ||||
| 
 | ||||
|                 GraphicsDevice.SetRenderTarget(null); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue