Skip to content

Moved the shaders to slang to facilitate development - #189

Merged
maxvdec merged 30 commits into
mainfrom
feature/slang
Sep 12, 2026
Merged

Moved the shaders to slang to facilitate development#189
maxvdec merged 30 commits into
mainfrom
feature/slang

Conversation

@maxvdec

@maxvdec maxvdec commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

All the shaders except the Photon shaders due to limitations have now been moved to slang.

@maxvdec maxvdec added this to the Beta 2 milestone Sep 12, 2026
@maxvdec maxvdec added atlas Features or things related to the core renderer opal labels Sep 12, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-12T05:59:07.306603Z c314c1b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@maxvdec
maxvdec merged commit 476850e into main Sep 12, 2026
8 of 9 checks passed
@maxvdec
maxvdec deleted the feature/slang branch September 12, 2026 05:56

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c314c1b324

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread atlas/object/shader.cpp
Comment on lines +139 to +140
case AtlasVertexShader::Terrain:
throw std::runtime_error("Legacy tessellated terrain shaders were removed");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore the shaders still used by Terrain

When any Aurora terrain is initialized, aurora/terrain.cpp still requests AtlasVertexShader::Terrain before requesting the matching fragment and tessellation shaders. This new unconditional throw therefore makes both C++ terrain initialization and the exposed JS Terrain.fromGenerator/Terrain.fromHeightmap paths fail before a pipeline can be created; migrate these shaders or update the active Terrain implementation instead of treating them as unused.

Useful? React with 👍 / 👎.

Comment thread shaders/fullscreen.slang
};

[[vk::push_constant]] ConstantBuffer<PushConstants> parameters;
[[vk::binding(0, 3)]] StructuredBuffer<int> EffectBuffer;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve the reflected effect-array names

When a render target has any post-processing effect, RenderTarget::render still writes Effects[i], while the implementations in include/atlas/effect.h write EffectFloatN[i]. The new direct structured buffers expose EffectBuffer and EffectFloatNBuffer instead, so those old names are absent from shader reflection and the setters cannot populate the data that this shader reads, leaving all configured effects unbound or using undefined values.

Useful? React with 👍 / 👎.

Comment thread include/atlas/object.h
Comment on lines 548 to +549
this->shaderProgram = ShaderProgram::fromDefaultShaders(
AtlasVertexShader::Main, AtlasFragmentShader::Main);
AtlasVertexShader::Deferred, AtlasFragmentShader::Deferred);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Do not bind G-buffer shaders in the forward-rendering helper

When callers invoke disableDeferredRendering(), setting useDeferredRendering to false schedules the object in the forward pass, but this change installs the deferred program whose fragment stage emits gPosition, gNormal, gAlbedoSpec, and gMaterial rather than a lit scene color. Against the forward framebuffer this can either fail pipeline attachment compatibility or display position/normal data, so the public helper no longer produces forward rendering.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

atlas Features or things related to the core renderer opal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant