Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit dab7959

Browse files
committed
Fixed bug where built-in wouldn't work at all. At the cost of losing OpenGL support on URP.
1 parent 80e7f17 commit dab7959

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Shaders/Penetration.cginc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ struct CatmullSplineData {
1313
// FIXME: I'm not actually sure this can even compile on mobile platforms. We need to double check.
1414
// Thoeretically there's no reason to use dynamic buffers like this (we should have static spline counts anyway).
1515
// But this was the most convienient way I could think of for the programming side of things.
16-
#if !defined(SHADER_API_D3D11_9X)
16+
#pragma target 5.0
17+
18+
#ifdef SHADER_API_D3D11
1719
StructuredBuffer<CatmullSplineData> _CatmullSplines;
1820
#else
1921
CatmullSplineData _CatmullSplines[4];
@@ -218,7 +220,7 @@ struct PenetratorData {
218220
int holeSubCurveCount;
219221
};
220222

221-
#if !defined(SHADER_API_D3D11_9X)
223+
#ifdef SHADER_API_D3D11
222224
StructuredBuffer<PenetratorData> _PenetratorData;
223225
#else
224226
PenetratorData _PenetratorData[4];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.naelstrof.penetrationtech",
33
"displayName": "Penetration Tech",
4-
"version": "3.5.8",
4+
"version": "3.5.9",
55
"unity": "2020.3",
66
"comment": "You can install serialized-reference-ui from this git url: https://github.com/TextusGames/UnitySerializedReferenceUI.git",
77
"dependencies": {

0 commit comments

Comments
 (0)