Files
ULRE/src/ShaderGen/3d/S_BillboardVertex.h

29 lines
524 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include<hgl/graph/mtl/StdMaterial.h>
STD_MTL_NAMESPACE_BEGIN
// 注意走的几何Shader输出是三角形条
constexpr const char shader_billboard_vertex_ccw[]=R"(
const vec2 BillboardVertex[4]=vec2[]
(
vec2(-0.5,-0.5),
vec2(-0.5, 0.5),
vec2( 0.5,-0.5),
vec2( 0.5, 0.5)
);
)";
constexpr const char shader_billboard_vertex_cw[]=R"(
const vec2 BillboardVertex[4]=vec2[]
(
vec2(-0.5,-0.5),
vec2( 0.5,-0.5),
vec2(-0.5, 0.5),
vec2( 0.5, 0.5)
);
)";
STD_MTL_NAMESPACE_END