Skip to content

Commit 18e999a

Browse files
author
Dmitriy Yukhanov
committed
Add Unity 2023 Alpha support
1 parent 44acc5a commit 18e999a

33 files changed

Lines changed: 2274 additions & 7 deletions

Unity Projects/Package2Folder 2023/Assets/New Folder.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Shader "Custom/NewSurfaceShader"
2+
{
3+
Properties
4+
{
5+
_Color ("Color", Color) = (1,1,1,1)
6+
_MainTex ("Albedo (RGB)", 2D) = "white" {}
7+
_Glossiness ("Smoothness", Range(0,1)) = 0.5
8+
_Metallic ("Metallic", Range(0,1)) = 0.0
9+
}
10+
SubShader
11+
{
12+
Tags { "RenderType"="Opaque" }
13+
LOD 200
14+
15+
CGPROGRAM
16+
// Physically based Standard lighting model, and enable shadows on all light types
17+
#pragma surface surf Standard fullforwardshadows
18+
19+
// Use shader model 3.0 target, to get nicer looking lighting
20+
#pragma target 3.0
21+
22+
sampler2D _MainTex;
23+
24+
struct Input
25+
{
26+
float2 uv_MainTex;
27+
};
28+
29+
half _Glossiness;
30+
half _Metallic;
31+
fixed4 _Color;
32+
33+
// Add instancing support for this shader. You need to check 'Enable Instancing' on materials that use the shader.
34+
// See https://docs.unity3d.com/Manual/GPUInstancing.html for more information about instancing.
35+
// #pragma instancing_options assumeuniformscaling
36+
UNITY_INSTANCING_BUFFER_START(Props)
37+
// put more per-instance properties here
38+
UNITY_INSTANCING_BUFFER_END(Props)
39+
40+
void surf (Input IN, inout SurfaceOutputStandard o)
41+
{
42+
// Albedo comes from a texture tinted by color
43+
fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color;
44+
o.Albedo = c.rgb;
45+
// Metallic and smoothness come from slider variables
46+
o.Metallic = _Metallic;
47+
o.Smoothness = _Glossiness;
48+
o.Alpha = c.a;
49+
}
50+
ENDCG
51+
}
52+
FallBack "Diffuse"
53+
}

Unity Projects/Package2Folder 2023/Assets/New Folder/NewSurfaceShader.shader.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Unity Projects/Package2Folder 2023/Assets/Plugins.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Unity Projects/Package2Folder 2023/Assets/Plugins/CodeStage.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../Package2Folder Master/Assets/Plugins/CodeStage/Package2Folder

Unity Projects/Package2Folder 2023/Assets/Plugins/CodeStage/Package2Folder.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"dependencies": {
3+
"com.unity.ide.rider": "3.0.17",
4+
"com.unity.modules.ai": "1.0.0",
5+
"com.unity.modules.androidjni": "1.0.0",
6+
"com.unity.modules.animation": "1.0.0",
7+
"com.unity.modules.assetbundle": "1.0.0",
8+
"com.unity.modules.audio": "1.0.0",
9+
"com.unity.modules.cloth": "1.0.0",
10+
"com.unity.modules.director": "1.0.0",
11+
"com.unity.modules.imageconversion": "1.0.0",
12+
"com.unity.modules.imgui": "1.0.0",
13+
"com.unity.modules.jsonserialize": "1.0.0",
14+
"com.unity.modules.particlesystem": "1.0.0",
15+
"com.unity.modules.physics": "1.0.0",
16+
"com.unity.modules.physics2d": "1.0.0",
17+
"com.unity.modules.screencapture": "1.0.0",
18+
"com.unity.modules.terrain": "1.0.0",
19+
"com.unity.modules.terrainphysics": "1.0.0",
20+
"com.unity.modules.tilemap": "1.0.0",
21+
"com.unity.modules.ui": "1.0.0",
22+
"com.unity.modules.uielements": "1.0.0",
23+
"com.unity.modules.umbra": "1.0.0",
24+
"com.unity.modules.unityanalytics": "1.0.0",
25+
"com.unity.modules.unitywebrequest": "1.0.0",
26+
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
27+
"com.unity.modules.unitywebrequestaudio": "1.0.0",
28+
"com.unity.modules.unitywebrequesttexture": "1.0.0",
29+
"com.unity.modules.unitywebrequestwww": "1.0.0",
30+
"com.unity.modules.vehicles": "1.0.0",
31+
"com.unity.modules.video": "1.0.0",
32+
"com.unity.modules.vr": "1.0.0",
33+
"com.unity.modules.wind": "1.0.0",
34+
"com.unity.modules.xr": "1.0.0"
35+
}
36+
}

0 commit comments

Comments
 (0)