Skip to content

Add frustum debug draw extension#998

Merged
AnastaZIuk merged 3 commits intomasterfrom
Frustum
Feb 17, 2026
Merged

Add frustum debug draw extension#998
AnastaZIuk merged 3 commits intomasterfrom
Frustum

Conversation

@CrabExtra
Copy link
Contributor

Description

Testing

TODO list:

Comment on lines +13 to +26
PSInput frustum_vertex_single()
{
PSInput output;
float32_t3 vertex = getNDCCubeVertex();

output.position = math::linalg::promoted_mul(pc.spc.instance.transform, vertex);
output.color = pc.spc.instance.color;

return output;
}
// Vertex shader - batch mode (instanced)
[shader("vertex")]
PSInput frustum_vertex_instances()
{

Choose a reason for hiding this comment

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

need a mangled namespace in the entrypoints as well

Comment on lines +50 to +54
float32_t3 getNDCCubeVertex()
{
float32_t3 v = (hlsl::promote<uint32_t3>(hlsl::glsl::gl_VertexIndex()) >> uint32_t3(0,2,1)) & 0x1u;
return v * float32_t3(2,2,1) + float32_t3(-1,-1,0);
}

Choose a reason for hiding this comment

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

love it

@devshgraphicsprogramming
Copy link
Member

@AnastaZIuk looks good to me, you can merge

@AnastaZIuk AnastaZIuk merged commit 288b823 into master Feb 17, 2026
19 checks passed
@AnastaZIuk AnastaZIuk deleted the Frustum branch February 17, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants