Saturday, July 22, 2017

xna - How do I autogenerate gradient lighting?


I am trying to think of a way to generate a gradient like this picture:


a radial gradient



Something like this GetGradientTexture(360f,100(width),100(height)), or if i want a directional light (like a flashlight) 180f,10,200.


But I can't really think of a good way to do this. Does anyone have anything that can push me in the right direction?




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...