A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
I use alpha chanel for minecraft-like light - as everyone else do
You simulate sunlight with 255 as alpha component of vertex color. I simulate sunlight using slider in my shader (_Light variable)
I fixes problem with lightsources gets black when you put the slider to the left Shader "Custom/SurfaceVertColoredAlpha" { Properties...
Show me please how you generate mesh, color part please. Try to replace this v.color = float4((_Light * v.color.a).xxxx) + v.color; by this...
You just need to add float property to your shader. Then, in your shader, you need to multiply vertex color with this float property. If property...
At the screenshot above i use light sources from unity (directional light, point light and other). But my game also support minecraft-like colored...
You need to put Color32 to your mesh. Alpha component - value from normal light, r,g,b components - sun lights
Yes. alpha component of it is color amount, rgb used for colored lighting And yes. I have an array of LightData. struct LightData { byte...
I created SunController class wich calculate LighValue (0.0 - 1.0) from time of day. Then i pass it to my shader, to _Light properties. I will...
Also, is there any way to implement shadow from unity object, such as three, without using light sources ? And is there any way to get bumped...
_Light - value between 0 and 1, to emulate time of day vert - vertex function to calculate vertex color. It use color (pre calculated vertex...
i sent you the code
My surface shader, that work with light sources. [ATTACH]
in C# array are thread-safe for reading
have you any article where i can read about lighting?
"run light from lightsources as you are probably already doing" you mean that in RemoveLigh i should do something that i always do with...
Guys, can you share footstep sounds for blocks?
There is, you can use DrawMesh
jordantotty, what about memory usage? What the size of you chunk in block, and the size of world in chunk? And what are you using for drawing...
ahahaha, yeah, bottle of rum))