X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=builtin_data%2F_pbr_prefilter.glsl;h=50fde16557eeb5038a6259d0b50ad61d3bed2637;hb=ef891fe4bf86704c37b4269d1aca190405455c12;hp=5f44689133f7a4f2336d56f42b3d693f27eafca2;hpb=e05c77d2e3582a6962f42dcec0fc5f7845ff448d;p=libs%2Fgl.git diff --git a/builtin_data/_pbr_prefilter.glsl b/builtin_data/_pbr_prefilter.glsl index 5f446891..50fde165 100644 --- a/builtin_data/_pbr_prefilter.glsl +++ b/builtin_data/_pbr_prefilter.glsl @@ -1,9 +1,10 @@ -uniform PrecalcParams +layout(push_constant) uniform PrecalcParams { int n_samples; + float roughness; }; -const float PI = 3.1415926535; +uniform samplerCube environment_map; vec2 hammersley(int i, int count) {