Question by
Reid_Taylor · Sep 24, 2020 at 09:32 PM ·
shadergrassgpu
Shader is not supported on this GPU.... Grass Shader
This is the shader:
Shader "Unlit/URPGrass"
{
Properties
{
[MainTexture] _BaseMap("Grass Texture",2D) = "white" {}
_Height ("Height", Float) = 1.0
_Base ("Base", Float) = 1.0
_Tint ("Tint", Color) = (0.5,0.5,0.5,1)
}
SubShader
{
Tags { "RenderType"="Opaque" "RenderPipeline"="UniversalPipeline"}
LOD 100
Pass
{
Name "Geometry Pass"
Tags {"LightMode"="UniversalForward"}
ZWrite On
Cull Off
HLSLPROGRAM
#pragma prefer_hlslcc gles
#pragma exclude_renderers d3d11_9x
#pragma target 4.0
#pragma shader_feature _SPECULARHIGHLIGHTS_OFF
#pragma shader_feature _GLOSSYREFLECTIONS_OFF
#pragma shader_feature _ALPHATEST_ON
#pragma shader_feature _ALPHAPREMULTIPLY_ON
#pragma shader_feature _SPECULAR_SETUP
#pragma shader_feature _RECEIVE_SHADOWS_ON
//#pragma shader_feature _ _RENDERING_CUTOUT _RENDERING_FADE
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS
#pragma multi_compile _ _SHADOWS_SOFT
#pragma multi_compile _ _MIXED_LIGHTING_SUBTRACTIVE
#pragma multi_compile _ DIRLIGHTMAP_COMBINED
#pragma multi_compile _ LIGHTMAP_ON
#pragma multi_compile_fog
#pragma require geometry
#pragma geometry LitPassGeom
#pragma vertex LitPassVertex
#pragma fragment LitPassFragment
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
#include "Packages/com.unity.render-pipelines.universal/Shaders/LitInput.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Shadows.hlsl"
#include "GrassPass.hlsl"
ENDHLSL
}
}
}
These are my specs:
MacBook Air (Retina, 13-inch, 2019)
Processor 1.6 GHz Dual-Core Intel Core i5
Memory 8 GB 2133 MHz LPDDR3
Graphics Intel UHD Graphics 617 1536 MB
Any help appreciated :) Im really stumped
Comment
Your answer
Follow this Question
Related Questions
Making a custom shader use GPU Instancing? 1 Answer
strange grass and soft partcile glitch, example image attached. 0 Answers
Vector Displacement not Working in Scene View 0 Answers
Read float values from RGBAFloat texture 1 Answer
How to remove the transparency of the grass ? (with terrain tool) 0 Answers