Updated MonoGame Shader Editor and create voxel shader with it .

I have added textures slots into MonoGame shader editor !


I have created my first shader for CubeShooter game with my new editor.

Grid on voxels is now computed directly into pixels shader.

//Vertex Shader
 //Compute UV
float3 n = abs(input.vertexNormal.xyz);
float2 tileUV = float2( dot(n,  input.vertexPosition.zxx),
dot(-n, input.vertexPosition.yzy));
  output.uv0 = tileUV * 0.5;
//Pixel Shader
float4 tex0Color = tex2D(TexSamplerSlot0, input.uv0);
return (tex0Color * xGridPower) + input.color;


It’s sure now I gain enormously times with this editor.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s