0 votes

I have a really simple scene with the following set-up:


The first MeshInstance is a big sphere with this shader:

shader_type spatial;
render_mode unshaded;

void fragment()
    ALBEDO = vec3(0.5,0.5,0.5);

MeshInstance2 is a small cube with a spatial shader, set to unshaded and given a red albedo (all the other settings are default).

The default environment background mode is set to clear color.

It looks how I'd expect in the 3D view:
3D view, cube is red
But when I play the project the cube isn't red, it's the same colour as the project clear colour:
Play mode, cube uses clear colour
Is there something obvious I'm missing, or is there an issue with my computer? TIA :)

asked Jun 20 in Engine by schnappischnap (14 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.