You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/tutorials/advanced/2d_shaders/08_light_effect/index.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -543,16 +543,17 @@ When each individual light is drawn into the `LightBuffer`, it needs to use the
543
543
544
544
_Most_ofthetimewhen `SpriteBatch` isbeingused, thereisasingle `Texture` and `Sampler` beingusedtodrawaspritetothescreen. The `SpriteBatch`'sdrawfunctionpassesthegiven `Texture2D` totheshaderbysettingitinthe `GraphicsDevice.Textures` array [directly](https://github.com/MonoGame/MonoGame/blob/develop/MonoGame.Framework/Graphics/SpriteBatcher.cs#L212). The texture is not being passed _by name_, it is being passed by _index_. In the lighting case, the `SpriteBatch` is being drawn with the `Core.Pixel` texture (a white 1x1 image we generated in the earlier chapters).
0 commit comments