This is a huge change, and basically breaks everything (as per usual!) First of, this includes stuff like shaders so anything involving those are broken and then fixed. A new BuildAssets cmake file is added to aid in running AssetCompiler, and it seems to work fine on the engine base assets. The File API will eventually be revamped to handle this new way of organizing the files and domains will eventually be gotten rid of all together since I probably will replace it with game directory priorities. As it stands right now, there isn't a way to easily replace say - render_options.cfg with your own game-specific version. Apple builds are probably broken by this commit (since I'm moving around content and shader directories) to be fixed later.
17 lines
492 B
GLSL
17 lines
492 B
GLSL
#define SMAA_INCLUDE_PS 1
|
|
#include "smaa_common.glsl"
|
|
|
|
layout(location = 0) in vec2 inUV;
|
|
layout(location = 1) in vec4 inOffset[3];
|
|
|
|
layout(location = 0) out vec4 outColor;
|
|
|
|
layout(binding = 0) uniform sampler2D imageSampler;
|
|
layout(binding = 1) uniform sampler2D depthSampler;
|
|
|
|
void main() {
|
|
//vec2 edge = SMAALumaEdgeDetectionPS(inUV, inOffset, imageSampler, depthSampler);
|
|
vec2 edge = SMAADepthEdgeDetectionPS(inUV, inOffset, depthSampler);
|
|
|
|
outColor = vec4(edge, 0.0, 1.0);
|
|
}
|