1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-19 06:47:44 +00:00

Improve appearance of the 3D View in the Map Editor

The object indicators are now drawn in wireframe - just a temporary
thing until I figure out how I want to style them. The ambient factor is
also increased so not everything is so dark.
This commit is contained in:
Joshua Goins 2025-05-17 12:19:28 -04:00
parent 45becb20ae
commit c2d1bbcbb3
3 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ void ObjectPass::createPipeline()
VkPipelineRasterizationStateCreateInfo rasterizer = {}; VkPipelineRasterizationStateCreateInfo rasterizer = {};
rasterizer.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO; rasterizer.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
rasterizer.polygonMode = VK_POLYGON_MODE_FILL; rasterizer.polygonMode = VK_POLYGON_MODE_LINE;
rasterizer.cullMode = VK_CULL_MODE_NONE; rasterizer.cullMode = VK_CULL_MODE_NONE;
rasterizer.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE; rasterizer.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE;
rasterizer.lineWidth = 1.0f; rasterizer.lineWidth = 1.0f;

View file

@ -21,7 +21,7 @@ layout(std430, push_constant) uniform PushConstant {
}; };
void main() { void main() {
const vec3 lightPos = vec3(3); const vec3 lightPos = vec3(5);
vec3 diffuse; vec3 diffuse;
if (textureSize(diffuseTexture, 0).x == 1) { if (textureSize(diffuseTexture, 0).x == 1) {
@ -41,5 +41,5 @@ void main() {
float diff = max(dot(norm, lightDir), 0.0); float diff = max(dot(norm, lightDir), 0.0);
outColor = vec4(diffuse * (diff + 0.1), 1.0); outColor = vec4(diffuse * (diff + 0.5), 1.0);
} }

Binary file not shown.