Skip to content

Commit bc1ec65

Browse files
authored
Merge pull request #13 from LuticaCANARD/master
패키지 버전업
2 parents 2eb60d2 + 80c7bff commit bc1ec65

5 files changed

Lines changed: 65 additions & 4 deletions

File tree

Packages/luticalab.core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "luticalab.core",
33
"displayName": "Lutica Lab Core",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"unity": "2022.3",
66
"description": "LuticaLab Core Library for Unity",
77
"vrchatVersion": "2022.1.1",
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Shader "Hidden/NormalMapGenerator"
2+
{
3+
Properties
4+
{
5+
_MainTex ("Texture", 2D) = "white" {}
6+
}
7+
SubShader
8+
{
9+
// No culling or depth
10+
Cull Off ZWrite Off ZTest Always
11+
12+
Pass
13+
{
14+
CGPROGRAM
15+
#pragma vertex vert
16+
#pragma fragment frag
17+
18+
#include "UnityCG.cginc"
19+
20+
struct appdata
21+
{
22+
float4 vertex : POSITION;
23+
float2 uv : TEXCOORD0;
24+
};
25+
26+
struct v2f
27+
{
28+
float2 uv : TEXCOORD0;
29+
float4 vertex : SV_POSITION;
30+
};
31+
32+
v2f vert (appdata v)
33+
{
34+
v2f o;
35+
o.vertex = UnityObjectToClipPos(v.vertex);
36+
o.uv = v.uv;
37+
return o;
38+
}
39+
40+
sampler2D _MainTex;
41+
42+
fixed4 frag (v2f i) : SV_Target
43+
{
44+
fixed4 col = tex2D(_MainTex, i.uv);
45+
// just invert the colors
46+
col.rgb = 1 - col.rgb;
47+
return col;
48+
}
49+
ENDCG
50+
}
51+
}
52+
}

Packages/luticalab.texturecocktail/Shader/Image/NormalMapGenerator.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.

Packages/luticalab.texturecocktail/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "luticalab.texturecocktail",
33
"displayName": "TextureCocktail",
4-
"version": "0.0.6",
4+
"version": "0.0.7",
55
"unity": "2022.3",
66
"description": "HLSL 2D Image Edit Runtime Library for Unity",
77
"vrchatVersion": "2022.1.1",
@@ -12,6 +12,6 @@
1212
},
1313
"url":"https://skid-cocktail.luticalab.dev/index.json",
1414
"dependencies" : {
15-
"luticalab.core": "0.0.1"
15+
"luticalab.core": "0.0.2"
1616
}
1717
}

Packages/packages-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"depth": 0,
117117
"source": "embedded",
118118
"dependencies": {
119-
"luticalab.core": "0.0.1"
119+
"luticalab.core": "0.0.2"
120120
}
121121
},
122122
"com.unity.modules.ai": {

0 commit comments

Comments
 (0)