Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 320 es
- #define INTERFACE_LOCATION(Pos) layout(location=Pos)
- #define INTERFACE_BLOCK(Pos, Interp, Modifiers, Semantic, PreType, PostType) layout(location=Pos) Modifiers Semantic { PreType PostType; }
- #define HLSLCC_DX11ClipSpace 1
- // end extensions
- layout(std140) uniform pb0
- {
- #define View_TranslatedWorldToClip View_TranslatedWorldToClippb0
- highp mat4 View_TranslatedWorldToClip;
- #define View_WorldToClip View_WorldToClippb0
- highp mat4 View_WorldToClip;
- #define View_TranslatedWorldToView View_TranslatedWorldToViewpb0
- highp mat4 View_TranslatedWorldToView;
- #define View_ViewToTranslatedWorld View_ViewToTranslatedWorldpb0
- highp mat4 View_ViewToTranslatedWorld;
- #define View_TranslatedWorldToCameraView View_TranslatedWorldToCameraViewpb0
- highp mat4 View_TranslatedWorldToCameraView;
- #define View_CameraViewToTranslatedWorld View_CameraViewToTranslatedWorldpb0
- highp mat4 View_CameraViewToTranslatedWorld;
- #define View_ViewToClip View_ViewToClippb0
- highp mat4 View_ViewToClip;
- #define View_ViewToClipNoAA View_ViewToClipNoAApb0
- highp mat4 View_ViewToClipNoAA;
- #define View_ClipToView View_ClipToViewpb0
- highp mat4 View_ClipToView;
- #define View_ClipToTranslatedWorld View_ClipToTranslatedWorldpb0
- highp mat4 View_ClipToTranslatedWorld;
- #define View_SVPositionToTranslatedWorld View_SVPositionToTranslatedWorldpb0
- highp mat4 View_SVPositionToTranslatedWorld;
- #define View_ScreenToWorld View_ScreenToWorldpb0
- highp mat4 View_ScreenToWorld;
- #define View_ScreenToTranslatedWorld View_ScreenToTranslatedWorldpb0
- highp mat4 View_ScreenToTranslatedWorld;
- #define View_ViewForward View_ViewForwardpb0
- highp vec3 View_ViewForward;
- #define PrePadding_View_844 PrePadding_View_844pb0
- highp float PrePadding_View_844;
- #define View_ViewUp View_ViewUppb0
- highp vec3 View_ViewUp;
- #define PrePadding_View_860 PrePadding_View_860pb0
- highp float PrePadding_View_860;
- #define View_ViewRight View_ViewRightpb0
- highp vec3 View_ViewRight;
- #define PrePadding_View_876 PrePadding_View_876pb0
- highp float PrePadding_View_876;
- #define View_HMDViewNoRollUp View_HMDViewNoRollUppb0
- highp vec3 View_HMDViewNoRollUp;
- #define PrePadding_View_892 PrePadding_View_892pb0
- highp float PrePadding_View_892;
- #define View_HMDViewNoRollRight View_HMDViewNoRollRightpb0
- highp vec3 View_HMDViewNoRollRight;
- #define PrePadding_View_908 PrePadding_View_908pb0
- highp float PrePadding_View_908;
- #define View_InvDeviceZToWorldZTransform View_InvDeviceZToWorldZTransformpb0
- highp vec4 View_InvDeviceZToWorldZTransform;
- #define View_ScreenPositionScaleBias View_ScreenPositionScaleBiaspb0
- highp vec4 View_ScreenPositionScaleBias;
- #define View_WorldCameraOrigin View_WorldCameraOriginpb0
- highp vec3 View_WorldCameraOrigin;
- #define PrePadding_View_956 PrePadding_View_956pb0
- highp float PrePadding_View_956;
- #define View_TranslatedWorldCameraOrigin View_TranslatedWorldCameraOriginpb0
- highp vec3 View_TranslatedWorldCameraOrigin;
- #define PrePadding_View_972 PrePadding_View_972pb0
- highp float PrePadding_View_972;
- #define View_WorldViewOrigin View_WorldViewOriginpb0
- highp vec3 View_WorldViewOrigin;
- #define PrePadding_View_988 PrePadding_View_988pb0
- highp float PrePadding_View_988;
- #define View_PreViewTranslation View_PreViewTranslationpb0
- highp vec3 View_PreViewTranslation;
- #define PrePadding_View_1004 PrePadding_View_1004pb0
- highp float PrePadding_View_1004;
- #define View_PrevProjection View_PrevProjectionpb0
- highp mat4 View_PrevProjection;
- #define View_PrevViewProj View_PrevViewProjpb0
- highp mat4 View_PrevViewProj;
- #define View_PrevViewRotationProj View_PrevViewRotationProjpb0
- highp mat4 View_PrevViewRotationProj;
- #define View_PrevViewToClip View_PrevViewToClippb0
- highp mat4 View_PrevViewToClip;
- #define View_PrevClipToView View_PrevClipToViewpb0
- highp mat4 View_PrevClipToView;
- #define View_PrevTranslatedWorldToClip View_PrevTranslatedWorldToClippb0
- highp mat4 View_PrevTranslatedWorldToClip;
- #define View_PrevTranslatedWorldToView View_PrevTranslatedWorldToViewpb0
- highp mat4 View_PrevTranslatedWorldToView;
- #define View_PrevViewToTranslatedWorld View_PrevViewToTranslatedWorldpb0
- highp mat4 View_PrevViewToTranslatedWorld;
- #define View_PrevTranslatedWorldToCameraView View_PrevTranslatedWorldToCameraViewpb0
- highp mat4 View_PrevTranslatedWorldToCameraView;
- #define View_PrevCameraViewToTranslatedWorld View_PrevCameraViewToTranslatedWorldpb0
- highp mat4 View_PrevCameraViewToTranslatedWorld;
- #define View_PrevWorldCameraOrigin View_PrevWorldCameraOriginpb0
- highp vec3 View_PrevWorldCameraOrigin;
- #define PrePadding_View_1660 PrePadding_View_1660pb0
- highp float PrePadding_View_1660;
- #define View_PrevWorldViewOrigin View_PrevWorldViewOriginpb0
- highp vec3 View_PrevWorldViewOrigin;
- #define PrePadding_View_1676 PrePadding_View_1676pb0
- highp float PrePadding_View_1676;
- #define View_PrevPreViewTranslation View_PrevPreViewTranslationpb0
- highp vec3 View_PrevPreViewTranslation;
- #define PrePadding_View_1692 PrePadding_View_1692pb0
- highp float PrePadding_View_1692;
- #define View_PrevInvViewProj View_PrevInvViewProjpb0
- highp mat4 View_PrevInvViewProj;
- #define View_PrevScreenToTranslatedWorld View_PrevScreenToTranslatedWorldpb0
- highp mat4 View_PrevScreenToTranslatedWorld;
- #define View_ClipToPrevClip View_ClipToPrevClippb0
- highp mat4 View_ClipToPrevClip;
- #define View_TemporalAAJitter View_TemporalAAJitterpb0
- highp vec4 View_TemporalAAJitter;
- #define View_GlobalClippingPlane View_GlobalClippingPlanepb0
- highp vec4 View_GlobalClippingPlane;
- #define View_FieldOfViewWideAngles View_FieldOfViewWideAnglespb0
- highp vec2 View_FieldOfViewWideAngles;
- #define View_PrevFieldOfViewWideAngles View_PrevFieldOfViewWideAnglespb0
- highp vec2 View_PrevFieldOfViewWideAngles;
- #define View_ViewRectMin View_ViewRectMinpb0
- highp vec4 View_ViewRectMin;
- #define View_ViewSizeAndInvSize View_ViewSizeAndInvSizepb0
- highp vec4 View_ViewSizeAndInvSize;
- #define View_BufferSizeAndInvSize View_BufferSizeAndInvSizepb0
- highp vec4 View_BufferSizeAndInvSize;
- #define View_BufferBilinearUVMinMax View_BufferBilinearUVMinMaxpb0
- highp vec4 View_BufferBilinearUVMinMax;
- #define View_NumSceneColorMSAASamples View_NumSceneColorMSAASamplespb0
- highp int View_NumSceneColorMSAASamples;
- #define View_PreExposure View_PreExposurepb0
- highp float View_PreExposure;
- #define View_OneOverPreExposure View_OneOverPreExposurepb0
- highp float View_OneOverPreExposure;
- #define PrePadding_View_2012 PrePadding_View_2012pb0
- highp float PrePadding_View_2012;
- #define View_DiffuseOverrideParameter View_DiffuseOverrideParameterpb0
- highp vec4 View_DiffuseOverrideParameter;
- #define View_SpecularOverrideParameter View_SpecularOverrideParameterpb0
- highp vec4 View_SpecularOverrideParameter;
- #define View_NormalOverrideParameter View_NormalOverrideParameterpb0
- highp vec4 View_NormalOverrideParameter;
- #define View_RoughnessOverrideParameter View_RoughnessOverrideParameterpb0
- highp vec2 View_RoughnessOverrideParameter;
- #define View_PrevFrameGameTime View_PrevFrameGameTimepb0
- highp float View_PrevFrameGameTime;
- #define View_PrevFrameRealTime View_PrevFrameRealTimepb0
- highp float View_PrevFrameRealTime;
- #define View_OutOfBoundsMask View_OutOfBoundsMaskpb0
- highp float View_OutOfBoundsMask;
- #define PrePadding_View_2084 PrePadding_View_2084pb0
- highp float PrePadding_View_2084;
- #define PrePadding_View_2088 PrePadding_View_2088pb0
- highp float PrePadding_View_2088;
- #define PrePadding_View_2092 PrePadding_View_2092pb0
- highp float PrePadding_View_2092;
- #define View_WorldCameraMovementSinceLastFrame View_WorldCameraMovementSinceLastFramepb0
- highp vec3 View_WorldCameraMovementSinceLastFrame;
- #define View_CullingSign View_CullingSignpb0
- highp float View_CullingSign;
- #define View_NearPlane View_NearPlanepb0
- highp float View_NearPlane;
- #define View_AdaptiveTessellationFactor View_AdaptiveTessellationFactorpb0
- highp float View_AdaptiveTessellationFactor;
- #define View_GameTime View_GameTimepb0
- highp float View_GameTime;
- #define View_RealTime View_RealTimepb0
- highp float View_RealTime;
- #define View_MaterialTextureMipBias View_MaterialTextureMipBiaspb0
- highp float View_MaterialTextureMipBias;
- #define View_MaterialTextureDerivativeMultiply View_MaterialTextureDerivativeMultiplypb0
- highp float View_MaterialTextureDerivativeMultiply;
- #define View_Random View_Randompb0
- highp uint View_Random;
- #define View_FrameNumber View_FrameNumberpb0
- highp uint View_FrameNumber;
- #define View_StateFrameIndexMod8 View_StateFrameIndexMod8pb0
- highp uint View_StateFrameIndexMod8;
- #define View_CameraCut View_CameraCutpb0
- highp float View_CameraCut;
- #define View_UnlitViewmodeMask View_UnlitViewmodeMaskpb0
- highp float View_UnlitViewmodeMask;
- #define PrePadding_View_2156 PrePadding_View_2156pb0
- highp float PrePadding_View_2156;
- #define View_DirectionalLightColor View_DirectionalLightColorpb0
- highp vec4 View_DirectionalLightColor;
- #define View_DirectionalLightDirection View_DirectionalLightDirectionpb0
- highp vec3 View_DirectionalLightDirection;
- #define PrePadding_View_2188 PrePadding_View_2188pb0
- highp float PrePadding_View_2188;
- #define View_TranslucencyLightingVolumeMin View_TranslucencyLightingVolumeMinpb0
- highp vec4 View_TranslucencyLightingVolumeMin[2];
- #define View_TranslucencyLightingVolumeInvSize View_TranslucencyLightingVolumeInvSizepb0
- highp vec4 View_TranslucencyLightingVolumeInvSize[2];
- #define View_TemporalAAParams View_TemporalAAParamspb0
- highp vec4 View_TemporalAAParams;
- #define View_CircleDOFParams View_CircleDOFParamspb0
- highp vec4 View_CircleDOFParams;
- #define View_DepthOfFieldSensorWidth View_DepthOfFieldSensorWidthpb0
- highp float View_DepthOfFieldSensorWidth;
- #define View_DepthOfFieldFocalDistance View_DepthOfFieldFocalDistancepb0
- highp float View_DepthOfFieldFocalDistance;
- #define View_DepthOfFieldScale View_DepthOfFieldScalepb0
- highp float View_DepthOfFieldScale;
- #define View_DepthOfFieldFocalLength View_DepthOfFieldFocalLengthpb0
- highp float View_DepthOfFieldFocalLength;
- #define View_DepthOfFieldFocalRegion View_DepthOfFieldFocalRegionpb0
- highp float View_DepthOfFieldFocalRegion;
- #define View_DepthOfFieldNearTransitionRegion View_DepthOfFieldNearTransitionRegionpb0
- highp float View_DepthOfFieldNearTransitionRegion;
- #define View_DepthOfFieldFarTransitionRegion View_DepthOfFieldFarTransitionRegionpb0
- highp float View_DepthOfFieldFarTransitionRegion;
- #define View_MotionBlurNormalizedToPixel View_MotionBlurNormalizedToPixelpb0
- highp float View_MotionBlurNormalizedToPixel;
- #define View_bSubsurfacePostprocessEnabled View_bSubsurfacePostprocessEnabledpb0
- highp float View_bSubsurfacePostprocessEnabled;
- #define View_GeneralPurposeTweak View_GeneralPurposeTweakpb0
- highp float View_GeneralPurposeTweak;
- #define View_DemosaicVposOffset View_DemosaicVposOffsetpb0
- highp float View_DemosaicVposOffset;
- #define PrePadding_View_2332 PrePadding_View_2332pb0
- highp float PrePadding_View_2332;
- #define View_IndirectLightingColorScale View_IndirectLightingColorScalepb0
- highp vec3 View_IndirectLightingColorScale;
- #define View_HDR32bppEncodingMode View_HDR32bppEncodingModepb0
- highp float View_HDR32bppEncodingMode;
- #define View_AtmosphericFogSunDirection View_AtmosphericFogSunDirectionpb0
- highp vec3 View_AtmosphericFogSunDirection;
- #define View_AtmosphericFogSunPower View_AtmosphericFogSunPowerpb0
- highp float View_AtmosphericFogSunPower;
- #define View_AtmosphericFogPower View_AtmosphericFogPowerpb0
- highp float View_AtmosphericFogPower;
- #define View_AtmosphericFogDensityScale View_AtmosphericFogDensityScalepb0
- highp float View_AtmosphericFogDensityScale;
- #define View_AtmosphericFogDensityOffset View_AtmosphericFogDensityOffsetpb0
- highp float View_AtmosphericFogDensityOffset;
- #define View_AtmosphericFogGroundOffset View_AtmosphericFogGroundOffsetpb0
- highp float View_AtmosphericFogGroundOffset;
- #define View_AtmosphericFogDistanceScale View_AtmosphericFogDistanceScalepb0
- highp float View_AtmosphericFogDistanceScale;
- #define View_AtmosphericFogAltitudeScale View_AtmosphericFogAltitudeScalepb0
- highp float View_AtmosphericFogAltitudeScale;
- #define View_AtmosphericFogHeightScaleRayleigh View_AtmosphericFogHeightScaleRayleighpb0
- highp float View_AtmosphericFogHeightScaleRayleigh;
- #define View_AtmosphericFogStartDistance View_AtmosphericFogStartDistancepb0
- highp float View_AtmosphericFogStartDistance;
- #define View_AtmosphericFogDistanceOffset View_AtmosphericFogDistanceOffsetpb0
- highp float View_AtmosphericFogDistanceOffset;
- #define View_AtmosphericFogSunDiscScale View_AtmosphericFogSunDiscScalepb0
- highp float View_AtmosphericFogSunDiscScale;
- #define View_AtmosphericFogRenderMask View_AtmosphericFogRenderMaskpb0
- highp uint View_AtmosphericFogRenderMask;
- #define View_AtmosphericFogInscatterAltitudeSampleNum View_AtmosphericFogInscatterAltitudeSampleNumpb0
- highp uint View_AtmosphericFogInscatterAltitudeSampleNum;
- #define View_AtmosphericFogSunColor View_AtmosphericFogSunColorpb0
- highp vec4 View_AtmosphericFogSunColor;
- #define View_NormalCurvatureToRoughnessScaleBias View_NormalCurvatureToRoughnessScaleBiaspb0
- highp vec3 View_NormalCurvatureToRoughnessScaleBias;
- #define View_RenderingReflectionCaptureMask View_RenderingReflectionCaptureMaskpb0
- highp float View_RenderingReflectionCaptureMask;
- #define View_AmbientCubemapTint View_AmbientCubemapTintpb0
- highp vec4 View_AmbientCubemapTint;
- #define View_AmbientCubemapIntensity View_AmbientCubemapIntensitypb0
- highp float View_AmbientCubemapIntensity;
- #define View_SkyLightParameters View_SkyLightParameterspb0
- highp float View_SkyLightParameters;
- #define PrePadding_View_2472 PrePadding_View_2472pb0
- highp float PrePadding_View_2472;
- #define PrePadding_View_2476 PrePadding_View_2476pb0
- highp float PrePadding_View_2476;
- #define View_SkyLightColor View_SkyLightColorpb0
- highp vec4 View_SkyLightColor;
- #define View_SkyIrradianceEnvironmentMap View_SkyIrradianceEnvironmentMappb0
- highp vec4 View_SkyIrradianceEnvironmentMap[7];
- #define View_MobilePreviewMode View_MobilePreviewModepb0
- highp float View_MobilePreviewMode;
- #define View_HMDEyePaddingOffset View_HMDEyePaddingOffsetpb0
- highp float View_HMDEyePaddingOffset;
- #define View_ReflectionCubemapMaxMip View_ReflectionCubemapMaxMippb0
- highp float View_ReflectionCubemapMaxMip;
- #define View_ShowDecalsMask View_ShowDecalsMaskpb0
- highp float View_ShowDecalsMask;
- #define View_DistanceFieldAOSpecularOcclusionMode View_DistanceFieldAOSpecularOcclusionModepb0
- highp uint View_DistanceFieldAOSpecularOcclusionMode;
- #define View_IndirectCapsuleSelfShadowingIntensity View_IndirectCapsuleSelfShadowingIntensitypb0
- highp float View_IndirectCapsuleSelfShadowingIntensity;
- #define PrePadding_View_2632 PrePadding_View_2632pb0
- highp float PrePadding_View_2632;
- #define PrePadding_View_2636 PrePadding_View_2636pb0
- highp float PrePadding_View_2636;
- #define View_ReflectionEnvironmentRoughnessMixingScaleBiasAndLargestWeight View_ReflectionEnvironmentRoughnessMixingScaleBiasAndLargestWeightpb0
- highp vec3 View_ReflectionEnvironmentRoughnessMixingScaleBiasAndLargestWeight;
- #define View_StereoPassIndex View_StereoPassIndexpb0
- highp int View_StereoPassIndex;
- #define View_GlobalVolumeCenterAndExtent View_GlobalVolumeCenterAndExtentpb0
- highp vec4 View_GlobalVolumeCenterAndExtent[4];
- #define View_GlobalVolumeWorldToUVAddAndMul View_GlobalVolumeWorldToUVAddAndMulpb0
- highp vec4 View_GlobalVolumeWorldToUVAddAndMul[4];
- #define View_GlobalVolumeDimension View_GlobalVolumeDimensionpb0
- highp float View_GlobalVolumeDimension;
- #define View_GlobalVolumeTexelSize View_GlobalVolumeTexelSizepb0
- highp float View_GlobalVolumeTexelSize;
- #define View_MaxGlobalDistance View_MaxGlobalDistancepb0
- highp float View_MaxGlobalDistance;
- #define View_bCheckerboardSubsurfaceProfileRendering View_bCheckerboardSubsurfaceProfileRenderingpb0
- highp float View_bCheckerboardSubsurfaceProfileRendering;
- #define View_VolumetricFogInvGridSize View_VolumetricFogInvGridSizepb0
- highp vec3 View_VolumetricFogInvGridSize;
- #define PrePadding_View_2812 PrePadding_View_2812pb0
- highp float PrePadding_View_2812;
- #define View_VolumetricFogGridZParams View_VolumetricFogGridZParamspb0
- highp vec3 View_VolumetricFogGridZParams;
- #define PrePadding_View_2828 PrePadding_View_2828pb0
- highp float PrePadding_View_2828;
- #define View_VolumetricFogSVPosToVolumeUV View_VolumetricFogSVPosToVolumeUVpb0
- highp vec2 View_VolumetricFogSVPosToVolumeUV;
- #define View_VolumetricFogMaxDistance View_VolumetricFogMaxDistancepb0
- highp float View_VolumetricFogMaxDistance;
- #define PrePadding_View_2844 PrePadding_View_2844pb0
- highp float PrePadding_View_2844;
- #define View_VolumetricLightmapWorldToUVScale View_VolumetricLightmapWorldToUVScalepb0
- highp vec3 View_VolumetricLightmapWorldToUVScale;
- #define PrePadding_View_2860 PrePadding_View_2860pb0
- highp float PrePadding_View_2860;
- #define View_VolumetricLightmapWorldToUVAdd View_VolumetricLightmapWorldToUVAddpb0
- highp vec3 View_VolumetricLightmapWorldToUVAdd;
- #define PrePadding_View_2876 PrePadding_View_2876pb0
- highp float PrePadding_View_2876;
- #define View_VolumetricLightmapIndirectionTextureSize View_VolumetricLightmapIndirectionTextureSizepb0
- highp vec3 View_VolumetricLightmapIndirectionTextureSize;
- #define View_VolumetricLightmapBrickSize View_VolumetricLightmapBrickSizepb0
- highp float View_VolumetricLightmapBrickSize;
- #define View_VolumetricLightmapBrickTexelSize View_VolumetricLightmapBrickTexelSizepb0
- highp vec3 View_VolumetricLightmapBrickTexelSize;
- #define View_StereoIPD View_StereoIPDpb0
- highp float View_StereoIPD;
- };
- layout(std140) uniform pb1
- {
- #define PrecomputedLightingBuffer_IndirectLightingCachePrimitiveAdd PrecomputedLightingBuffer_IndirectLightingCachePrimitiveAddpb1
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCachePrimitiveAdd;
- #define PrePadding_PrecomputedLightingBuffer_12 PrePadding_PrecomputedLightingBuffer_12pb1
- highp float PrePadding_PrecomputedLightingBuffer_12;
- #define PrecomputedLightingBuffer_IndirectLightingCachePrimitiveScale PrecomputedLightingBuffer_IndirectLightingCachePrimitiveScalepb1
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCachePrimitiveScale;
- #define PrePadding_PrecomputedLightingBuffer_28 PrePadding_PrecomputedLightingBuffer_28pb1
- highp float PrePadding_PrecomputedLightingBuffer_28;
- #define PrecomputedLightingBuffer_IndirectLightingCacheMinUV PrecomputedLightingBuffer_IndirectLightingCacheMinUVpb1
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCacheMinUV;
- #define PrePadding_PrecomputedLightingBuffer_44 PrePadding_PrecomputedLightingBuffer_44pb1
- highp float PrePadding_PrecomputedLightingBuffer_44;
- #define PrecomputedLightingBuffer_IndirectLightingCacheMaxUV PrecomputedLightingBuffer_IndirectLightingCacheMaxUVpb1
- highp vec3 PrecomputedLightingBuffer_IndirectLightingCacheMaxUV;
- #define PrePadding_PrecomputedLightingBuffer_60 PrePadding_PrecomputedLightingBuffer_60pb1
- highp float PrePadding_PrecomputedLightingBuffer_60;
- #define PrecomputedLightingBuffer_PointSkyBentNormal PrecomputedLightingBuffer_PointSkyBentNormalpb1
- highp vec4 PrecomputedLightingBuffer_PointSkyBentNormal;
- #define PrecomputedLightingBuffer_DirectionalLightShadowing PrecomputedLightingBuffer_DirectionalLightShadowingpb1
- highp float PrecomputedLightingBuffer_DirectionalLightShadowing;
- #define PrePadding_PrecomputedLightingBuffer_84 PrePadding_PrecomputedLightingBuffer_84pb1
- highp float PrePadding_PrecomputedLightingBuffer_84;
- #define PrePadding_PrecomputedLightingBuffer_88 PrePadding_PrecomputedLightingBuffer_88pb1
- highp float PrePadding_PrecomputedLightingBuffer_88;
- #define PrePadding_PrecomputedLightingBuffer_92 PrePadding_PrecomputedLightingBuffer_92pb1
- highp float PrePadding_PrecomputedLightingBuffer_92;
- #define PrecomputedLightingBuffer_StaticShadowMapMasks PrecomputedLightingBuffer_StaticShadowMapMaskspb1
- highp vec4 PrecomputedLightingBuffer_StaticShadowMapMasks;
- #define PrecomputedLightingBuffer_InvUniformPenumbraSizes PrecomputedLightingBuffer_InvUniformPenumbraSizespb1
- highp vec4 PrecomputedLightingBuffer_InvUniformPenumbraSizes;
- #define PrecomputedLightingBuffer_IndirectLightingSHCoefficients0 PrecomputedLightingBuffer_IndirectLightingSHCoefficients0pb1
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients0[3];
- #define PrecomputedLightingBuffer_IndirectLightingSHCoefficients1 PrecomputedLightingBuffer_IndirectLightingSHCoefficients1pb1
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients1[3];
- #define PrecomputedLightingBuffer_IndirectLightingSHCoefficients2 PrecomputedLightingBuffer_IndirectLightingSHCoefficients2pb1
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHCoefficients2;
- #define PrecomputedLightingBuffer_IndirectLightingSHSingleCoefficient PrecomputedLightingBuffer_IndirectLightingSHSingleCoefficientpb1
- highp vec4 PrecomputedLightingBuffer_IndirectLightingSHSingleCoefficient;
- #define PrecomputedLightingBuffer_LightMapCoordinateScaleBias PrecomputedLightingBuffer_LightMapCoordinateScaleBiaspb1
- highp vec4 PrecomputedLightingBuffer_LightMapCoordinateScaleBias;
- #define PrecomputedLightingBuffer_ShadowMapCoordinateScaleBias PrecomputedLightingBuffer_ShadowMapCoordinateScaleBiaspb1
- highp vec4 PrecomputedLightingBuffer_ShadowMapCoordinateScaleBias;
- #define PrecomputedLightingBuffer_LightMapScale PrecomputedLightingBuffer_LightMapScalepb1
- highp vec4 PrecomputedLightingBuffer_LightMapScale[2];
- #define PrecomputedLightingBuffer_LightMapAdd PrecomputedLightingBuffer_LightMapAddpb1
- highp vec4 PrecomputedLightingBuffer_LightMapAdd[2];
- };
- layout(std140) uniform pb2
- {
- #define MobileDirectionalLight_DirectionalLightColor MobileDirectionalLight_DirectionalLightColorpb2
- highp vec4 MobileDirectionalLight_DirectionalLightColor;
- #define MobileDirectionalLight_DirectionalLightDirection MobileDirectionalLight_DirectionalLightDirectionpb2
- highp vec3 MobileDirectionalLight_DirectionalLightDirection;
- #define MobileDirectionalLight_DirectionalLightShadowTransition MobileDirectionalLight_DirectionalLightShadowTransitionpb2
- highp float MobileDirectionalLight_DirectionalLightShadowTransition;
- #define MobileDirectionalLight_DirectionalLightShadowSize MobileDirectionalLight_DirectionalLightShadowSizepb2
- highp vec4 MobileDirectionalLight_DirectionalLightShadowSize;
- #define MobileDirectionalLight_DirectionalLightScreenToShadow MobileDirectionalLight_DirectionalLightScreenToShadowpb2
- highp mat4 MobileDirectionalLight_DirectionalLightScreenToShadow[4];
- #define MobileDirectionalLight_DirectionalLightShadowDistances MobileDirectionalLight_DirectionalLightShadowDistancespb2
- highp vec4 MobileDirectionalLight_DirectionalLightShadowDistances;
- #define MobileDirectionalLight_DirectionalLightDistanceFadeMAD MobileDirectionalLight_DirectionalLightDistanceFadeMADpb2
- highp vec2 MobileDirectionalLight_DirectionalLightDistanceFadeMAD;
- };
- layout(std140) uniform pb3
- {
- #define Material_VectorExpressions Material_VectorExpressionspb3
- highp vec4 Material_VectorExpressions[3];
- #define Material_ScalarExpressions Material_ScalarExpressionspb3
- highp vec4 Material_ScalarExpressions[1];
- };
- precision mediump float;
- precision mediump int;
- #ifndef DONTEMITSAMPLERDEFAULTPRECISION
- precision mediump sampler2D;
- precision mediump samplerCube;
- #endif
- #ifdef TEXCOORDPRECISIONWORKAROUND
- vec4 texture2DTexCoordPrecisionWorkaround(sampler2D p, vec2 tcoord)
- {
- return texture2D(p, tcoord);
- }
- #define texture2D texture2DTexCoordPrecisionWorkaround
- #endif
- precision highp float;
- precision highp int;
- void compiler_internal_AdjustInputSemantic(inout vec4 TempVariable)
- {
- #if HLSLCC_DX11ClipSpace
- TempVariable.y = -TempVariable.y;
- TempVariable.z = ( TempVariable.z + TempVariable.w ) / 2.0;
- #endif
- }
- void compiler_internal_AdjustOutputSemantic(inout vec4 Src)
- {
- #if HLSLCC_DX11ClipSpace
- Src.y = -Src.y;
- Src.z = ( 2.0 * Src.z ) - Src.w;
- #endif
- }
- bool compiler_internal_AdjustIsFrontFacing(bool isFrontFacing)
- {
- #if HLSLCC_DX11ClipSpace
- return !isFrontFacing;
- #else
- return isFrontFacing;
- #endif
- }
- uniform highp vec4 pu_h[2];
- uniform highp samplerCube ps5;
- uniform highp sampler2D ps3;
- uniform highp sampler2D ps2;
- uniform highp sampler2D ps1;
- uniform highp sampler2D ps0;
- uniform highp sampler2D ps4;
- INTERFACE_LOCATION(0) in highp vec4 in_TEXCOORD10;
- INTERFACE_LOCATION(1) in highp vec4 in_TEXCOORD11;
- INTERFACE_LOCATION(2) in vec4 in_COLOR0;
- INTERFACE_LOCATION(3) in highp vec4 in_TEXCOORD0;
- INTERFACE_LOCATION(4) in highp vec4 in_TEXCOORD1;
- INTERFACE_LOCATION(5) in highp vec4 in_TEXCOORD4;
- INTERFACE_LOCATION(6) in highp vec4 in_TEXCOORD8;
- INTERFACE_LOCATION(0) out vec4 out_Target0;
- void main()
- {
- highp vec3 v0;
- v0.xyz = pu_h[1].xyz;
- vec4 v1;
- vec3 v2;
- vec3 v3;
- v3.xyz = in_TEXCOORD10.xyz;
- v2.xyz = v3;
- vec4 v4;
- vec4 v5;
- v5.xyzw = in_TEXCOORD11;
- v4.xyzw = v5;
- vec4 v6;
- v6.xyzw = in_COLOR0;
- vec3 v7;
- v7.xyz = (cross(v4.xyz,v2)*v4.www);
- vec3 v8;
- vec3 v9;
- v9.xyz = normalize((vec3(-1.000000e-02,-1.000000e-02,-1.000000e-02)*in_TEXCOORD8.xyz));
- v8.xyz = v9;
- vec2 v10;
- v10.xy = ((texture(ps0,in_TEXCOORD0.zw).xy*vec2(2.000000e+00,2.000000e+00))+vec2(-1.000000e+00,-1.000000e+00));
- vec4 v11;
- v11.w = 1.000000e+00;
- v11.xy = v10;
- v11.z = sqrt(clamp((1.000000e+00+(-dot(v10,v10))),0.000000e+00,1.000000e+00));
- float h12;
- h12 = (v11.z+1.000000e+00);
- vec2 v13;
- v13.xy = ((texture(ps0,in_TEXCOORD1.xy).xy*vec2(2.000000e+00,2.000000e+00))+vec2(-1.000000e+00,-1.000000e+00));
- vec4 v14;
- v14.w = 1.000000e+00;
- v14.xy = v13;
- v14.z = sqrt(clamp((1.000000e+00+(-dot(v13,v13))),0.000000e+00,1.000000e+00));
- vec2 v15;
- v15.xy = (v13*vec2(-1.000000e+00,-1.000000e+00));
- vec3 v16;
- v16.xy = v10;
- v16.z = h12;
- vec3 v17;
- v17.xy = v15;
- v17.z = v14.z;
- vec3 v18;
- v18.xy = v10;
- v18.z = h12;
- vec3 v19;
- v19.xy = v15;
- v19.z = v14.z;
- vec2 v20;
- v20.xy = ((texture(ps1,in_TEXCOORD0.xy).xy*vec2(2.000000e+00,2.000000e+00))+vec2(-1.000000e+00,-1.000000e+00));
- vec4 v21;
- v21.w = 1.000000e+00;
- v21.xy = v20;
- v21.z = sqrt(clamp((1.000000e+00+(-dot(v20,v20))),0.000000e+00,1.000000e+00));
- vec2 v22;
- v22.xy = ((texture(ps1,in_TEXCOORD0.xy).xy*vec2(2.000000e+00,2.000000e+00))+vec2(-1.000000e+00,-1.000000e+00));
- float h23;
- h23 = sqrt(clamp((1.000000e+00+(-dot(v22,v22))),0.000000e+00,1.000000e+00));
- vec4 v24;
- v24.xyzw = texture(ps2,in_TEXCOORD0.xy);
- vec3 v25;
- v25.xyz = mix((((v18*vec3(dot(v16,v17)))+(-(vec3(h12)*v19)))*vec3(3.000000e-02,3.000000e-02,1.000000e+00)),v21.xyz,vec3(min(max((((v6.z*2.500000e+00)+(-min(max((((1.000000e+00+(-h23))*2.000000e-01)+v24.x),0.000000e+00),1.000000e+00)))/5.000000e-01),0.000000e+00),1.000000e+00)));
- float h26;
- h26 = dot(v25,v25);
- vec4 v27;
- v27.w = 0.000000e+00;
- float h28;
- h28 = length(v25);
- v27.xyz = (v25/vec3(h28));
- vec4 v29;
- v29.xyzw = ((h26>=1.000000e-06))?(v27):(vec4(0.000000e+00,0.000000e+00,1.000000e+00,1.000000e+00));
- vec3 v30;
- v30.xyz = v29.xyz;
- vec3 v31;
- highp vec3 v32;
- v32.xyz = ((v4.xyz*v30.zzz)+((v7*v30.yyy)+(v2*v30.xxx)));
- vec3 v33;
- v33.xyz = normalize(v32);
- v31.xyz = v33;
- vec3 v34;
- v34.xyz = ((-v8)+((v31*vec3(dot(v31,v8)))*vec3(2.000000e+00,2.000000e+00,2.000000e+00)));
- vec3 v35;
- v35.xyz = (texture(ps3,in_TEXCOORD0.xy).xyz*Material_ScalarExpressions[0].xxx);
- vec3 v36;
- v36.xyz = Material_VectorExpressions[2].xyz;
- vec3 v37;
- v37.xyz = clamp(mix((vec3(2.000000e-01,2.000000e-01,2.000000e-01)*v35),v35,vec3(min(max((((v6.z*2.500000e+00)+(-min(max((((1.000000e+00+(-h23))*2.000000e-01)+v24.x),0.000000e+00),1.000000e+00)))+-1.000000e+00),0.000000e+00),1.000000e+00))),vec3(0.000000e+00,0.000000e+00,0.000000e+00),vec3(1.000000e+00,1.000000e+00,1.000000e+00));
- float h38;
- h38 = clamp(Material_ScalarExpressions[0].y,0.000000e+00,1.000000e+00);
- vec3 v39;
- v39.xyz = (v37+(-(v37*vec3(h38))));
- vec3 v40;
- v40.xyz = (vec3((4.000000e-02+(-(4.000000e-02*h38))))+(v37*vec3(h38)));
- float h41;
- h41 = clamp(mix(vec3(0.000000e+00,0.000000e+00,0.000000e+00),vec3(min(max(mix(Material_ScalarExpressions[0].w,Material_ScalarExpressions[0].z,texture(ps2,in_TEXCOORD0.xy).x),0.000000e+00),1.000000e+00)),vec3(min(max(((v6.z*2.500000e+00)+(-min(max((((1.000000e+00+(-h23))*2.000000e-01)+v24.x),0.000000e+00),1.000000e+00))),0.000000e+00),1.000000e+00))).x,1.200000e-01,1.000000e+00);
- vec3 v42;
- vec2 v43;
- vec4 v44;
- v44.xyzw = ((vec4(h41)*vec4(-1.000000e+00,-2.750000e-02,-5.720000e-01,2.200000e-02))+vec4(1.000000e+00,4.250000e-02,1.040000e+00,-4.000000e-02));
- vec2 v45;
- v45.xy = ((vec2(-1.040000e+00,1.040000e+00)*vec2(((min((v44.x*v44.x),exp2((-9.280000e+00*max(dot(v31,v8),0.000000e+00))))*v44.x)+v44.y)))+v44.zw);
- v43.xy = v45;
- v43.y = (v45.y*clamp((5.000000e+01*v40.y),0.000000e+00,1.000000e+00));
- v42.xyz = ((v40*v45.xxx)+v43.yyy);
- highp vec2 v46;
- v46.xy = (in_TEXCOORD4.xy*vec2(1.000000e+00,5.000000e-01));
- vec3 v47;
- v47.xyz = ((texture(ps4,v46).xyz*PrecomputedLightingBuffer_LightMapScale[0].xyz)+PrecomputedLightingBuffer_LightMapAdd[0].xyz);
- float h48;
- h48 = dot(v47,vec3(3.000000e-01,5.900000e-01,1.100000e-01));
- highp vec4 v49;
- v49.w = 1.000000e+00;
- highp vec3 v50;
- v50.xyz = v31.yzx;
- v49.xyz = v50;
- float h51;
- highp vec4 v52;
- v52.xyzw = ((texture(ps4,(v46+vec2(0.000000e+00,5.000000e-01)))*PrecomputedLightingBuffer_LightMapScale[1])+PrecomputedLightingBuffer_LightMapAdd[1]);
- float h53;
- h53 = max(0.000000e+00,dot(v52,v49));
- h51 = ((exp2(((h48*1.600000e+01)+-8.000000e+00))+-3.906250e-03)*h53);
- vec3 v54;
- v54.xyz = (v47*vec3((h51/h48)));
- vec4 v55;
- v55.xyz = v54;
- v55.w = h51;
- highp vec3 v56;
- highp vec3 v57;
- v57.xyz = normalize((v8+MobileDirectionalLight_DirectionalLightDirection));
- v56.xyz = v57;
- highp vec3 v58;
- vec3 v59;
- v59.xyz = v56;
- highp vec3 v60;
- v60.xyz = cross(v31,v59);
- v58.xyz = v60;
- float h61;
- h61 = (h41*h41);
- highp float f62;
- highp vec3 v63;
- v63.xyz = v31;
- float h64;
- h64 = max(0.000000e+00,dot(v63,v56));
- highp float f65;
- f65 = (h64*h61);
- f62 = f65;
- highp float f66;
- highp float f67;
- f67 = h61;
- f66 = (f67/(dot(v58,v58)+(f62*f62)));
- vec3 v68;
- highp vec3 v69;
- v69.xyz = v31;
- highp vec3 v70;
- v70.xyz = MobileDirectionalLight_DirectionalLightDirection;
- highp float f71;
- f71 = 0.000000e+00;
- highp vec3 v72;
- v72.xyz = MobileDirectionalLight_DirectionalLightColor.xyz;
- float h73;
- h73 = min((f66*f66),6.550400e+04);
- highp vec3 v74;
- v74.xyz = (v39+(v42*vec3((((h41*2.500000e-01)+2.500000e-01)*h73))));
- vec3 v75;
- v75.xyz = ((vec3((f71*max(0.000000e+00,dot(v69,v70))))*v72)*v74);
- v68.xyz = ((v54*v39)+v75);
- vec3 v76;
- float h77;
- h77 = float((pu_h[0].x>0.000000e+00));
- highp float f78;
- highp float f79;
- f79 = pu_h[0].x;
- highp float f80;
- highp float f81;
- f81 = View_ReflectionCubemapMaxMip;
- f80 = f81;
- f78 = (bool(h77))?(f79):(f80);
- vec4 v82;
- float h83;
- h83 = f78;
- highp float f84;
- f84 = ((h83+-1.000000e+00)+(-(1.000000e+00+(-(1.200000e+00*log2(h41))))));
- v82.xyzw = textureLod(ps5,v34,f84);
- if (bool(h77))
- {
- vec3 v85;
- v85.xyz = View_SkyLightColor.xyz;
- v76.xyz = (v82.xyz*v85);
- }
- else
- {
- vec3 v86;
- v86.xyz = (v82.xyz*vec3((v82.w*1.600000e+01)));
- float h87;
- h87 = v0.x;
- v76.xyz = ((v86*v86)*vec3(h87));
- }
- v1.xyz = ((v68+((v76*v55.www)*v42))+max(v36,vec3(0.000000e+00,0.000000e+00,0.000000e+00)));
- v1.w = 0.000000e+00;
- float h88;
- h88 = in_TEXCOORD8.w;
- v1.w = h88;
- out_Target0.xyzw = v1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement