Skip to content

Commit ea64d4d

Browse files
author
runes
committed
2 parents 46ca2c9 + 9739c5e commit ea64d4d

File tree

8 files changed

+265
-25
lines changed

8 files changed

+265
-25
lines changed

Assets/basicrenderloop.asset renamed to Assets/BasicRenderLoopTutorial/BasicRenderLoop.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ MonoBehaviour:
99
m_Enabled: 1
1010
m_EditorHideFlags: 0
1111
m_Script: {fileID: 11500000, guid: 22228a1bd982b864ea6c84db2fc11dd1, type: 3}
12-
m_Name: basicrenderloop
12+
m_Name: BasicRenderLoop
1313
m_EditorClassIdentifier:

Assets/basicrenderloop.asset.meta renamed to Assets/BasicRenderLoopTutorial/BasicRenderLoop.asset.meta

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

Assets/BasicRenderLoopTutorial/BasicRenderLoop.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public class BasicRenderLoop : RenderPipeline
1414
{
1515

1616
#if UNITY_EDITOR
17-
[UnityEditor.MenuItem("Renderloop/CreateBasicRenderLoop")]
17+
[UnityEditor.MenuItem("Renderloop/Create BasicRenderLoop")]
1818
static void CreateBasicRenderLoop()
1919
{
2020
var instance = ScriptableObject.CreateInstance<BasicRenderLoop>();
21-
UnityEditor.AssetDatabase.CreateAsset(instance, "Assets/basicrenderloop.asset");
21+
UnityEditor.AssetDatabase.CreateAsset(instance, "Assets/BasicRenderLoopTutorial/BasicRenderLoop.asset");
2222
}
2323
#endif
2424

Assets/BasicRenderLoopTutorial/BasicRenderLoopScene.unity

Lines changed: 239 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RenderSettings:
3737
m_ReflectionIntensity: 0.5
3838
m_CustomReflection: {fileID: 0}
3939
m_Sun: {fileID: 0}
40-
m_IndirectSpecularColor: {r: 0.09067501, g: 0.11147752, b: 0.14205909, a: 0.5}
40+
m_IndirectSpecularColor: {r: 0.09067552, g: 0.11147809, b: 0.14205924, a: 0.5}
4141
--- !u!157 &3
4242
LightmapSettings:
4343
m_ObjectHideFlags: 0
@@ -89,6 +89,8 @@ NavMeshSettings:
8989
minRegionArea: 2
9090
manualCellSize: 0
9191
cellSize: 0.16666667
92+
manualTileSize: 0
93+
tileSize: 256
9294
accuratePlacement: 0
9395
m_NavMeshData: {fileID: 0}
9496
--- !u!1 &261580742
@@ -287,6 +289,174 @@ Transform:
287289
m_Father: {fileID: 0}
288290
m_RootOrder: 10
289291
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
292+
--- !u!1 &1084503476
293+
GameObject:
294+
m_ObjectHideFlags: 0
295+
m_PrefabParentObject: {fileID: 0}
296+
m_PrefabInternal: {fileID: 0}
297+
serializedVersion: 5
298+
m_Component:
299+
- component: {fileID: 1084503480}
300+
- component: {fileID: 1084503479}
301+
- component: {fileID: 1084503478}
302+
- component: {fileID: 1084503477}
303+
m_Layer: 5
304+
m_Name: Canvas
305+
m_TagString: Untagged
306+
m_Icon: {fileID: 0}
307+
m_NavMeshLayer: 0
308+
m_StaticEditorFlags: 0
309+
m_IsActive: 1
310+
--- !u!114 &1084503477
311+
MonoBehaviour:
312+
m_ObjectHideFlags: 0
313+
m_PrefabParentObject: {fileID: 0}
314+
m_PrefabInternal: {fileID: 0}
315+
m_GameObject: {fileID: 1084503476}
316+
m_Enabled: 1
317+
m_EditorHideFlags: 0
318+
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
319+
m_Name:
320+
m_EditorClassIdentifier:
321+
m_IgnoreReversedGraphics: 1
322+
m_BlockingObjects: 0
323+
m_BlockingMask:
324+
serializedVersion: 2
325+
m_Bits: 4294967295
326+
--- !u!114 &1084503478
327+
MonoBehaviour:
328+
m_ObjectHideFlags: 0
329+
m_PrefabParentObject: {fileID: 0}
330+
m_PrefabInternal: {fileID: 0}
331+
m_GameObject: {fileID: 1084503476}
332+
m_Enabled: 1
333+
m_EditorHideFlags: 0
334+
m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3}
335+
m_Name:
336+
m_EditorClassIdentifier:
337+
m_UiScaleMode: 1
338+
m_ReferencePixelsPerUnit: 100
339+
m_ScaleFactor: 1
340+
m_ReferenceResolution: {x: 800, y: 600}
341+
m_ScreenMatchMode: 0
342+
m_MatchWidthOrHeight: 0
343+
m_PhysicalUnit: 3
344+
m_FallbackScreenDPI: 96
345+
m_DefaultSpriteDPI: 96
346+
m_DynamicPixelsPerUnit: 1
347+
--- !u!223 &1084503479
348+
Canvas:
349+
m_ObjectHideFlags: 0
350+
m_PrefabParentObject: {fileID: 0}
351+
m_PrefabInternal: {fileID: 0}
352+
m_GameObject: {fileID: 1084503476}
353+
m_Enabled: 1
354+
serializedVersion: 2
355+
m_RenderMode: 0
356+
m_Camera: {fileID: 0}
357+
m_PlaneDistance: 100
358+
m_PixelPerfect: 0
359+
m_ReceivesEvents: 1
360+
m_OverrideSorting: 0
361+
m_OverridePixelPerfect: 0
362+
m_SortingBucketNormalizedSize: 0
363+
m_SortingLayerID: 0
364+
m_SortingOrder: 0
365+
m_TargetDisplay: 0
366+
--- !u!224 &1084503480
367+
RectTransform:
368+
m_ObjectHideFlags: 0
369+
m_PrefabParentObject: {fileID: 0}
370+
m_PrefabInternal: {fileID: 0}
371+
m_GameObject: {fileID: 1084503476}
372+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
373+
m_LocalPosition: {x: 0, y: 0, z: 0}
374+
m_LocalScale: {x: 0, y: 0, z: 0}
375+
m_Children:
376+
- {fileID: 1177504218}
377+
m_Father: {fileID: 0}
378+
m_RootOrder: 11
379+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
380+
m_AnchorMin: {x: 0, y: 0}
381+
m_AnchorMax: {x: 0, y: 0}
382+
m_AnchoredPosition: {x: 0, y: 0}
383+
m_SizeDelta: {x: 0, y: 0}
384+
m_Pivot: {x: 0, y: 0}
385+
--- !u!1 &1177504217
386+
GameObject:
387+
m_ObjectHideFlags: 0
388+
m_PrefabParentObject: {fileID: 0}
389+
m_PrefabInternal: {fileID: 0}
390+
serializedVersion: 5
391+
m_Component:
392+
- component: {fileID: 1177504218}
393+
- component: {fileID: 1177504220}
394+
- component: {fileID: 1177504219}
395+
m_Layer: 5
396+
m_Name: Text
397+
m_TagString: Untagged
398+
m_Icon: {fileID: 0}
399+
m_NavMeshLayer: 0
400+
m_StaticEditorFlags: 0
401+
m_IsActive: 1
402+
--- !u!224 &1177504218
403+
RectTransform:
404+
m_ObjectHideFlags: 0
405+
m_PrefabParentObject: {fileID: 0}
406+
m_PrefabInternal: {fileID: 0}
407+
m_GameObject: {fileID: 1177504217}
408+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
409+
m_LocalPosition: {x: 0, y: 0, z: 0}
410+
m_LocalScale: {x: 1, y: 1, z: 1}
411+
m_Children: []
412+
m_Father: {fileID: 1084503480}
413+
m_RootOrder: 0
414+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
415+
m_AnchorMin: {x: 0, y: 0}
416+
m_AnchorMax: {x: 0, y: 0}
417+
m_AnchoredPosition: {x: 163, y: 47.8}
418+
m_SizeDelta: {x: 314, y: 82}
419+
m_Pivot: {x: 0.5, y: 0.5}
420+
--- !u!114 &1177504219
421+
MonoBehaviour:
422+
m_ObjectHideFlags: 0
423+
m_PrefabParentObject: {fileID: 0}
424+
m_PrefabInternal: {fileID: 0}
425+
m_GameObject: {fileID: 1177504217}
426+
m_Enabled: 1
427+
m_EditorHideFlags: 0
428+
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
429+
m_Name:
430+
m_EditorClassIdentifier:
431+
m_Material: {fileID: 0}
432+
m_Color: {r: 1, g: 1, b: 1, a: 1}
433+
m_RaycastTarget: 1
434+
m_OnCullStateChanged:
435+
m_PersistentCalls:
436+
m_Calls: []
437+
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
438+
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
439+
m_FontData:
440+
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
441+
m_FontSize: 14
442+
m_FontStyle: 0
443+
m_BestFit: 0
444+
m_MinSize: 10
445+
m_MaxSize: 40
446+
m_Alignment: 6
447+
m_AlignByGeometry: 0
448+
m_RichText: 1
449+
m_HorizontalOverflow: 0
450+
m_VerticalOverflow: 0
451+
m_LineSpacing: 1
452+
m_Text: Select "BasicRenderLoop" as the render pipeline in Edit -> Project Settings
453+
-> Graphics
454+
--- !u!222 &1177504220
455+
CanvasRenderer:
456+
m_ObjectHideFlags: 0
457+
m_PrefabParentObject: {fileID: 0}
458+
m_PrefabInternal: {fileID: 0}
459+
m_GameObject: {fileID: 1177504217}
290460
--- !u!1 &1280249095
291461
GameObject:
292462
m_ObjectHideFlags: 0
@@ -730,7 +900,7 @@ Light:
730900
m_PrefabInternal: {fileID: 0}
731901
m_GameObject: {fileID: 1677622456}
732902
m_Enabled: 1
733-
serializedVersion: 7
903+
serializedVersion: 8
734904
m_Type: 0
735905
m_Color: {r: 0.75, g: 1, b: 0.78275865, a: 1}
736906
m_Intensity: 1.5
@@ -755,6 +925,7 @@ Light:
755925
m_Lightmapping: 4
756926
m_AreaSize: {x: 1, y: 1}
757927
m_BounceIntensity: 1
928+
m_CCT: 6570
758929
m_ShadowRadius: 0
759930
m_ShadowAngle: 0
760931
--- !u!4 &1677622458
@@ -958,7 +1129,7 @@ Light:
9581129
m_PrefabInternal: {fileID: 0}
9591130
m_GameObject: {fileID: 1900527473}
9601131
m_Enabled: 1
961-
serializedVersion: 7
1132+
serializedVersion: 8
9621133
m_Type: 2
9631134
m_Color: {r: 1, g: 0.6911765, b: 0.6911765, a: 1}
9641135
m_Intensity: 3
@@ -983,6 +1154,7 @@ Light:
9831154
m_Lightmapping: 4
9841155
m_AreaSize: {x: 1, y: 1}
9851156
m_BounceIntensity: 1
1157+
m_CCT: 6570
9861158
m_ShadowRadius: 0
9871159
m_ShadowAngle: 0
9881160
--- !u!4 &1900527475
@@ -1021,7 +1193,7 @@ Light:
10211193
m_PrefabInternal: {fileID: 0}
10221194
m_GameObject: {fileID: 2011495862}
10231195
m_Enabled: 1
1024-
serializedVersion: 7
1196+
serializedVersion: 8
10251197
m_Type: 1
10261198
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
10271199
m_Intensity: 1
@@ -1046,6 +1218,7 @@ Light:
10461218
m_Lightmapping: 4
10471219
m_AreaSize: {x: 1, y: 1}
10481220
m_BounceIntensity: 1
1221+
m_CCT: 6570
10491222
m_ShadowRadius: 0
10501223
m_ShadowAngle: 0
10511224
--- !u!4 &2011495864
@@ -1143,3 +1316,65 @@ Transform:
11431316
m_Father: {fileID: 0}
11441317
m_RootOrder: 7
11451318
m_LocalEulerAnglesHint: {x: -6.8960004, y: -33.794003, z: -20.829}
1319+
--- !u!1 &2054727025
1320+
GameObject:
1321+
m_ObjectHideFlags: 0
1322+
m_PrefabParentObject: {fileID: 0}
1323+
m_PrefabInternal: {fileID: 0}
1324+
serializedVersion: 5
1325+
m_Component:
1326+
- component: {fileID: 2054727028}
1327+
- component: {fileID: 2054727027}
1328+
- component: {fileID: 2054727026}
1329+
m_Layer: 0
1330+
m_Name: EventSystem
1331+
m_TagString: Untagged
1332+
m_Icon: {fileID: 0}
1333+
m_NavMeshLayer: 0
1334+
m_StaticEditorFlags: 0
1335+
m_IsActive: 1
1336+
--- !u!114 &2054727026
1337+
MonoBehaviour:
1338+
m_ObjectHideFlags: 0
1339+
m_PrefabParentObject: {fileID: 0}
1340+
m_PrefabInternal: {fileID: 0}
1341+
m_GameObject: {fileID: 2054727025}
1342+
m_Enabled: 1
1343+
m_EditorHideFlags: 0
1344+
m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3}
1345+
m_Name:
1346+
m_EditorClassIdentifier:
1347+
m_HorizontalAxis: Horizontal
1348+
m_VerticalAxis: Vertical
1349+
m_SubmitButton: Submit
1350+
m_CancelButton: Cancel
1351+
m_InputActionsPerSecond: 10
1352+
m_RepeatDelay: 0.5
1353+
m_ForceModuleActive: 0
1354+
--- !u!114 &2054727027
1355+
MonoBehaviour:
1356+
m_ObjectHideFlags: 0
1357+
m_PrefabParentObject: {fileID: 0}
1358+
m_PrefabInternal: {fileID: 0}
1359+
m_GameObject: {fileID: 2054727025}
1360+
m_Enabled: 1
1361+
m_EditorHideFlags: 0
1362+
m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3}
1363+
m_Name:
1364+
m_EditorClassIdentifier:
1365+
m_FirstSelected: {fileID: 0}
1366+
m_sendNavigationEvents: 1
1367+
m_DragThreshold: 5
1368+
--- !u!4 &2054727028
1369+
Transform:
1370+
m_ObjectHideFlags: 0
1371+
m_PrefabParentObject: {fileID: 0}
1372+
m_PrefabInternal: {fileID: 0}
1373+
m_GameObject: {fileID: 2054727025}
1374+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1375+
m_LocalPosition: {x: 0, y: 0, z: 0}
1376+
m_LocalScale: {x: 1, y: 1, z: 1}
1377+
m_Children: []
1378+
m_Father: {fileID: 0}
1379+
m_RootOrder: 12
1380+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

Assets/ScriptableRenderLoop/HDRenderLoop/Material/LayeredLit/Editor/LayeredLitUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private class StylesLayer
4141
public readonly GUIContent layerMapMaskText = new GUIContent("Layer Mask", "Layer mask (multiplied by vertex color if enabled)");
4242
public readonly GUIContent layerMapVertexColorText = new GUIContent("Use Vertex Color", "Layer mask (multiplied by layer mask if enabled)");
4343
public readonly GUIContent layerCountText = new GUIContent("Layer Count", "Number of layers.");
44-
public readonly GUIContent layerTexWorldScaleText = new GUIContent("Tex world scale", "Scale to apply to world position for Planar/Trilinear");
44+
public readonly GUIContent layerTexWorldScaleText = new GUIContent("Tiling", "Tiling factor applied to Planar/Trilinear mapping");
4545
public readonly GUIContent UVBaseText = new GUIContent("Base UV Mapping", "Base UV Mapping mode of the layer.");
4646
public readonly GUIContent UVDetailText = new GUIContent("Detail UV Mapping", "Detail UV Mapping mode of the layer.");
4747
}

Assets/ScriptableRenderLoop/HDRenderLoop/Material/LayeredLit/LayeredLit.shader

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ Shader "HDRenderLoop/LayeredLit"
134134
// All the following properties that concern the UV mapping are the same as in the Lit shader.
135135
// This means that they will get overridden when synchronizing the various layers.
136136
// To avoid this, make sure that all properties here are in the exclusion list in LayeredLitUI.SynchronizeLayerProperties
137-
_TexWorldScale0("Scale to apply on world coordinate", Float) = 1.0
138-
_TexWorldScale1("Scale to apply on world coordinate", Float) = 1.0
139-
_TexWorldScale2("Scale to apply on world coordinate", Float) = 1.0
140-
_TexWorldScale3("Scale to apply on world coordinate", Float) = 1.0
137+
_TexWorldScale0("Tiling", Float) = 1.0
138+
_TexWorldScale1("Tiling", Float) = 1.0
139+
_TexWorldScale2("Tiling", Float) = 1.0
140+
_TexWorldScale3("Tiling", Float) = 1.0
141141

142142
[Enum(UV0, 0, UV1, 1, UV3, 2, Planar, 3, Triplanar, 4)] _UVBase0("UV Set for base0", Float) = 0
143143
[Enum(UV0, 0, UV1, 1, UV3, 2, Planar, 3, Triplanar, 4)] _UVBase1("UV Set for base1", Float) = 0
@@ -162,7 +162,7 @@ Shader "HDRenderLoop/LayeredLit"
162162
// Unused but to be able to share litUI.Sahder and layeredUI.Shader
163163
[HideInInspector] _UVBase("UV Set for base", Float) = 0
164164
[HideInInspector] _UVDetail("UV Set for base", Float) = 0
165-
[HideInInspector] _TexWorldScale("Scale to apply on world coordinate", Float) = 1.0
165+
[HideInInspector] _TexWorldScale("Tiling", Float) = 1.0
166166
[HideInInspector] _UVMappingMask("_UVMappingMask", Color) = (1, 0, 0, 0)
167167
[HideInInspector] _UVDetailsMappingMask("_UVDetailsMappingMask", Color) = (1, 0, 0, 0)
168168
}

Assets/ScriptableRenderLoop/HDRenderLoop/Material/Lit/Editor/BaseLitUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected static class Styles
2525

2626
public static GUIContent smoothnessMapChannelText = new GUIContent("Smoothness Source", "Smoothness texture and channel");
2727
public static GUIContent UVBaseMappingText = new GUIContent("UV set for Base", "");
28-
public static GUIContent texWorldScaleText = new GUIContent("Scale to apply on world coordinate in case of Planar/Triplanar", "");
28+
public static GUIContent texWorldScaleText = new GUIContent("Tiling", "Tiling factor applied to Planar/Trilinear mapping");
2929
public static GUIContent UVBaseDetailMappingText = new GUIContent("UV set for Base and Detail", "");
3030
public static GUIContent normalMapSpaceText = new GUIContent("Normal/Tangent Map space", "");
3131
public static GUIContent heightMapModeText = new GUIContent("Height Map Mode", "");

0 commit comments

Comments
 (0)