Questions tagged «ssao»

1
SSAO实施未获得理想的结果
在实现了延迟渲染之后,我通过本教程尝试了SSAO实现。不幸的是,我没有得到任何看起来像SSAO的东西,您可以在下面看到我的结果。 您会看到有一些奇怪的图案形成,并且在需要的地方(即在物体之间和地面上)没有遮挡阴影。我实现的着色器如下: #VS #version 330 core uniform mat4 invProjMatrix; layout(location = 0) in vec3 in_Position; layout(location = 2) in vec2 in_TexCoord; noperspective out vec2 pass_TexCoord; smooth out vec3 viewRay; void main(void){ pass_TexCoord = in_TexCoord; viewRay = (invProjMatrix * vec4(in_Position, 1.0)).xyz; gl_Position = vec4(in_Position, 1.0); } #FS #version 330 core uniform …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.