Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 310 es
- precision mediump float;
- precision highp int;
- layout(set = 3, binding = 0, std140) uniform HLSLCC_CBh
- {
- highp vec4 pu_h[2];
- } _16;
- layout(set = 3, binding = 3, std140) uniform Material
- {
- highp vec4 Material_VectorExpressions[3];
- highp vec4 Material_ScalarExpressions[1];
- } _132;
- layout(set = 3, binding = 2, std140) uniform PrecomputedLightingBuffer
- {
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCachePrimitiveAdd;
- highp float PrePadding_PrecomputedLightingBuffer_12;
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCachePrimitiveScale;
- highp float PrePadding_PrecomputedLightingBuffer_28;
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCacheMinUV;
- highp float PrePadding_PrecomputedLightingBuffer_44;
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCacheMaxUV;
- highp float PrePadding_PrecomputedLightingBuffer_60;
- highp vec4 PrecomputedLightingBuffer_PointSkyBentNormal;
- highp float PrecomputedLightingBuffer_DirectionalLightShadowing;
- highp float PrePadding_PrecomputedLightingBuffer_84;
- highp float PrePadding_PrecomputedLightingBuffer_88;
- highp float PrePadding_PrecomputedLightingBuffer_92;
- highp vec4 PrecomputedLightingBuffer_StaticShadowMapMasks;
- highp vec4 PrecomputedLightingBuffer_InvUniformPenumbraSizes;
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients0[3];
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients1[3];
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients2;
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHSingleCoefficient;
- highp vec4 PrecomputedLightingBuffer_LightMapCoordinateScaleBias;
- highp vec4 PrecomputedLightingBuffer_ShadowMapCoordinateScaleBias;
- highp vec4 PrecomputedLightingBuffer_LightMapScale[2];
- highp vec4 PrecomputedLightingBuffer_LightMapAdd[2];
- } _249;
- layout(set = 3, binding = 1, std140) uniform View
- {
- highp mat4 View_TranslatedWorldToClip;
- highp mat4 View_WorldToClip;
- highp mat4 View_TranslatedWorldToView;
- highp mat4 View_ViewToTranslatedWorld;
- highp mat4 View_TranslatedWorldToCameraView;
- highp mat4 View_CameraViewToTranslatedWorld;
- highp mat4 View_ViewToClip;
- highp mat4 View_ViewToClipNoAA;
- highp mat4 View_ClipToView;
- highp mat4 View_ClipToTranslatedWorld;
- highp mat4 View_SVPositionToTranslatedWorld;
- highp mat4 View_ScreenToWorld;
- highp mat4 View_ScreenToTranslatedWorld;
- highp vec3 View_ViewForward;
- highp float PrePadding_View_844;
- highp vec3 View_ViewUp;
- highp float PrePadding_View_860;
- highp vec3 View_ViewRight;
- highp float PrePadding_View_876;
- highp vec3 View_HMDViewNoRollUp;
- highp float PrePadding_View_892;
- highp vec3 View_HMDViewNoRollRight;
- highp float PrePadding_View_908;
- highp vec4 View_InvDeviceZToWorldZTransform;
- highp vec4 View_ScreenPositionScaleBias;
- highp vec3 View_WorldCameraOrigin;
- highp float PrePadding_View_956;
- highp vec3 View_TranslatedWorldCameraOrigin;
- highp float PrePadding_View_972;
- highp vec3 View_WorldViewOrigin;
- highp float PrePadding_View_988;
- highp vec3 View_PreViewTranslation;
- highp float PrePadding_View_1004;
- highp mat4 View_PrevProjection;
- highp mat4 View_PrevViewProj;
- highp mat4 View_PrevViewRotationProj;
- highp mat4 View_PrevViewToClip;
- highp mat4 View_PrevClipToView;
- highp mat4 View_PrevTranslatedWorldToClip;
- highp mat4 View_PrevTranslatedWorldToView;
- highp mat4 View_PrevViewToTranslatedWorld;
- highp mat4 View_PrevTranslatedWorldToCameraView;
- highp mat4 View_PrevCameraViewToTranslatedWorld;
- highp vec3 View_PrevWorldCameraOrigin;
- highp float PrePadding_View_1660;
- highp vec3 View_PrevWorldViewOrigin;
- highp float PrePadding_View_1676;
- highp vec3 View_PrevPreViewTranslation;
- highp float PrePadding_View_1692;
- highp mat4 View_PrevInvViewProj;
- highp mat4 View_PrevScreenToTranslatedWorld;
- highp mat4 View_ClipToPrevClip;
- highp vec4 View_TemporalAAJitter;
- highp vec4 View_GlobalClippingPlane;
- highp vec2 View_FieldOfViewWideAngles;
- highp vec2 View_PrevFieldOfViewWideAngles;
- highp vec4 View_ViewRectMin;
- highp vec4 View_ViewSizeAndInvSize;
- highp vec4 View_BufferSizeAndInvSize;
- highp vec4 View_BufferBilinearUVMinMax;
- int View_NumSceneColorMSAASamples;
- highp float View_PreExposure;
- highp float View_OneOverPreExposure;
- highp float PrePadding_View_2012;
- highp vec4 View_DiffuseOverrideParameter;
- highp vec4 View_SpecularOverrideParameter;
- highp vec4 View_NormalOverrideParameter;
- highp vec2 View_RoughnessOverrideParameter;
- highp float View_PrevFrameGameTime;
- highp float View_PrevFrameRealTime;
- highp float View_OutOfBoundsMask;
- highp float PrePadding_View_2084;
- highp float PrePadding_View_2088;
- highp float PrePadding_View_2092;
- highp vec3 View_WorldCameraMovementSinceLastFrame;
- highp float View_CullingSign;
- highp float View_NearPlane;
- highp float View_AdaptiveTessellationFactor;
- highp float View_GameTime;
- highp float View_RealTime;
- highp float View_MaterialTextureMipBias;
- highp float View_MaterialTextureDerivativeMultiply;
- uint View_Random;
- uint View_FrameNumber;
- uint View_StateFrameIndexMod8;
- highp float View_CameraCut;
- highp float View_UnlitViewmodeMask;
- highp float PrePadding_View_2156;
- highp vec4 View_DirectionalLightColor;
- highp vec3 View_DirectionalLightDirection;
- highp float PrePadding_View_2188;
- highp vec4 View_TranslucencyLightingVolumeMin[2];
- highp vec4 View_TranslucencyLightingVolumeInvSize[2];
- highp vec4 View_TemporalAAParams;
- highp vec4 View_CircleDOFParams;
- highp float View_DepthOfFieldSensorWidth;
- highp float View_DepthOfFieldFocalDistance;
- highp float View_DepthOfFieldScale;
- highp float View_DepthOfFieldFocalLength;
- highp float View_DepthOfFieldFocalRegion;
- highp float View_DepthOfFieldNearTransitionRegion;
- highp float View_DepthOfFieldFarTransitionRegion;
- highp float View_MotionBlurNormalizedToPixel;
- highp float View_bSubsurfacePostprocessEnabled;
- highp float View_GeneralPurposeTweak;
- highp float View_DemosaicVposOffset;
- highp float PrePadding_View_2332;
- highp vec3 View_IndirectLightingColorScale;
- highp float View_HDR32bppEncodingMode;
- highp vec3 View_AtmosphericFogSunDirection;
- highp float View_AtmosphericFogSunPower;
- highp float View_AtmosphericFogPower;
- highp float View_AtmosphericFogDensityScale;
- highp float View_AtmosphericFogDensityOffset;
- highp float View_AtmosphericFogGroundOffset;
- highp float View_AtmosphericFogDistanceScale;
- highp float View_AtmosphericFogAltitudeScale;
- highp float View_AtmosphericFogHeightScaleRayleigh;
- highp float View_AtmosphericFogStartDistance;
- highp float View_AtmosphericFogDistanceOffset;
- highp float View_AtmosphericFogSunDiscScale;
- uint View_AtmosphericFogRenderMask;
- uint View_AtmosphericFogInscatterAltitudeSampleNum;
- highp vec4 View_AtmosphericFogSunColor;
- highp vec3 View_NormalCurvatureToRoughnessScaleBias;
- highp float View_RenderingReflectionCaptureMask;
- highp vec4 View_AmbientCubemapTint;
- highp float View_AmbientCubemapIntensity;
- highp float View_SkyLightParameters;
- highp float PrePadding_View_2472;
- highp float PrePadding_View_2476;
- highp vec4 View_SkyLightColor;
- highp vec4 View_SkyIrradianceEnvironmentMap[7];
- highp float View_MobilePreviewMode;
- highp float View_HMDEyePaddingOffset;
- highp float View_ReflectionCubemapMaxMip;
- highp float View_ShowDecalsMask;
- uint View_DistanceFieldAOSpecularOcclusionMode;
- highp float View_IndirectCapsuleSelfShadowingIntensity;
- highp float PrePadding_View_2632;
- highp float PrePadding_View_2636;
- highp vec3 View_ReflectionEnvironmentRoughnessMixingScaleBiasAndLargestWeight;
- int View_StereoPassIndex;
- highp vec4 View_GlobalVolumeCenterAndExtent[4];
- highp vec4 View_GlobalVolumeWorldToUVAddAndMul[4];
- highp float View_GlobalVolumeDimension;
- highp float View_GlobalVolumeTexelSize;
- highp float View_MaxGlobalDistance;
- highp float View_bCheckerboardSubsurfaceProfileRendering;
- highp vec3 View_VolumetricFogInvGridSize;
- highp float PrePadding_View_2812;
- highp vec3 View_VolumetricFogGridZParams;
- highp float PrePadding_View_2828;
- highp vec2 View_VolumetricFogSVPosToVolumeUV;
- highp float View_VolumetricFogMaxDistance;
- highp float PrePadding_View_2844;
- highp vec3 View_VolumetricLightmapWorldToUVScale;
- highp float PrePadding_View_2860;
- highp vec3 View_VolumetricLightmapWorldToUVAdd;
- highp float PrePadding_View_2876;
- highp vec3 View_VolumetricLightmapIndirectionTextureSize;
- highp float View_VolumetricLightmapBrickSize;
- highp vec3 View_VolumetricLightmapBrickTexelSize;
- highp float View_StereoIPD;
- } _346;
- layout(set = 3, binding = 7) uniform highp sampler2D Material_Texture2D_0;
- layout(set = 3, binding = 6) uniform highp sampler2D Material_Texture2D_1;
- layout(set = 3, binding = 5) uniform highp sampler2D Material_Texture2D_2;
- layout(set = 3, binding = 8) uniform highp sampler2D PrecomputedLightingBuffer_LightMapTexture;
- layout(set = 3, binding = 4) uniform highp samplerCube ReflectionCubemap;
- layout(location = 4) in highp vec4 in_TEXCOORD8;
- layout(location = 2) in highp vec4 in_TEXCOORD0;
- layout(location = 1) in highp vec4 in_TEXCOORD11;
- layout(location = 0) in highp vec4 in_TEXCOORD10;
- layout(location = 3) in highp vec4 in_TEXCOORD4;
- layout(location = 0) out highp vec4 out_Target0;
- void main()
- {
- highp vec3 v0 = _16.pu_h[1].xyz;
- highp vec3 v2 = normalize(-in_TEXCOORD8.xyz);
- highp vec2 v3 = (texture(Material_Texture2D_0, in_TEXCOORD0.xy).xy * vec2(2.0)) + vec2(-1.0);
- highp vec4 v4;
- v4.w = 1.0;
- v4 = vec4(v3.x, v3.y, v4.z, v4.w);
- v4.z = sqrt(clamp(1.0 + (-dot(v3, v3)), 0.0, 1.0));
- highp vec3 v5 = normalize((in_TEXCOORD11.xyz * v4.zzz) + (((cross(in_TEXCOORD11.xyz, in_TEXCOORD10.xyz) * in_TEXCOORD11.www) * v3.yyy) + (in_TEXCOORD10.xyz * v3.xxx)));
- highp vec3 v6 = (-v2) + ((v5 * vec3(dot(v5, v2))) * vec3(2.0));
- highp vec4 v7 = texture(Material_Texture2D_1, in_TEXCOORD0.xy);
- highp vec2 v8 = in_TEXCOORD0.xy * vec2(1.12399995326995849609375, 1.6019999980926513671875);
- highp vec2 v9 = v8 + (-fract(v8));
- highp vec3 v10 = _132.Material_VectorExpressions[2].xyz;
- highp vec3 v11 = clamp(v7.xyz, vec3(0.0), vec3(1.0));
- highp float f12 = clamp(min(max(mix(_132.Material_ScalarExpressions[0].y, _132.Material_ScalarExpressions[0].x, mix(texture(Material_Texture2D_2, in_TEXCOORD0.xy).y, v7.w, min(max(v9.x + v9.y, 0.0), 1.0))), 0.0), 1.0), 0.119999997317790985107421875, 1.0);
- highp vec4 v15 = (vec4(f12) * vec4(-1.0, -0.0274999998509883880615234375, -0.572000026702880859375, 0.02199999988079071044921875)) + vec4(1.0, 0.0425000004470348358154296875, 1.03999996185302734375, -0.039999999105930328369140625);
- highp vec2 v16 = (vec2(-1.03999996185302734375, 1.03999996185302734375) * vec2((min(v15.x * v15.x, exp2((-9.27999973297119140625) * max(dot(v5, v2), 0.0))) * v15.x) + v15.y)) + v15.zw;
- highp vec2 v14 = v16;
- v14.y = v16.y * clamp(50.0 * v11.y, 0.0, 1.0);
- highp vec3 v13 = (v11 * v16.xxx) + v14.yyy;
- highp vec2 v17 = in_TEXCOORD4.xy * vec2(1.0, 0.5);
- highp vec3 v18 = (texture(PrecomputedLightingBuffer_LightMapTexture, v17).xyz * _249.PrecomputedLightingBuffer_LightMapScale[0].xyz) + _249.PrecomputedLightingBuffer_LightMapAdd[0].xyz;
- highp float f19 = dot(v18, vec3(0.300000011920928955078125, 0.589999973773956298828125, 0.10999999940395355224609375));
- highp vec4 v20;
- v20.w = 1.0;
- v20 = vec4(v5.yzx.x, v5.yzx.y, v5.yzx.z, v20.w);
- highp float f21 = (exp2((f19 * 16.0) + (-8.0)) + (-0.00390625)) * max(0.0, dot((texture(PrecomputedLightingBuffer_LightMapTexture, v17 + vec2(0.0, 0.5)) * _249.PrecomputedLightingBuffer_LightMapScale[1]) + _249.PrecomputedLightingBuffer_LightMapAdd[1], v20));
- highp vec3 v22 = v18 * vec3(f21 / f19);
- highp vec4 v23;
- v23 = vec4(v22.x, v22.y, v22.z, v23.w);
- v23.w = f21;
- highp vec3 v24 = v22 * (v11 + (-v11));
- highp float f27 = float(_16.pu_h[0].x > 0.0);
- highp float f26 = f27;
- highp float f29 = _16.pu_h[0].x;
- highp float _329;
- if (f26 != 0.0)
- {
- _329 = f29;
- }
- else
- {
- _329 = _346.View_ReflectionCubemapMaxMip;
- }
- highp float f28 = _329;
- highp vec4 v30 = textureLod(ReflectionCubemap, v6, (f28 + (-1.0)) + (-(1.0 + (-(1.2000000476837158203125 * log2(f12))))));
- highp vec3 v25;
- if (f26 != 0.0)
- {
- v25 = v30.xyz * _346.View_SkyLightColor.xyz;
- }
- else
- {
- highp vec3 v31 = v30.xyz * vec3(v30.w * 16.0);
- v25 = (v31 * v31) * v0.xxx;
- }
- highp vec3 _407 = (v24 + ((v25 * v23.www) * v13)) + max(v10, vec3(0.0));
- highp vec4 v1;
- v1 = vec4(_407.x, _407.y, _407.z, v1.w);
- v1.w = 0.0;
- v1.w = in_TEXCOORD8.w;
- out_Target0 = v1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement