Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
man-in-the-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MIM
man-in-the-mirror
Commits
f40dbf7f
Commit
f40dbf7f
authored
Jul 15, 2019
by
18손재민
Committed by
15박보승
Jul 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
카메라에서 나오는 빛이 이제 거울에 비치지 않음
parent
2ee7fa85
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
16 deletions
+58
-16
MirrorCameraScript.cs
Assets/MagicMirror/Prefab/MirrorCameraScript.cs
+24
-0
camera.prefab
Assets/Prefabs/Objects/camera.prefab
+8
-8
stage3.json
Assets/Resources/Stages/stage3.json
+1
-0
stage3.json.meta
Assets/Resources/Stages/stage3.json.meta
+7
-0
PlayStage.unity
Assets/Scenes/PlayStage.unity
+17
-8
TagManager.asset
ProjectSettings/TagManager.asset
+1
-0
No files found.
Assets/MagicMirror/Prefab/MirrorCameraScript.cs
View file @
f40dbf7f
...
...
@@ -111,6 +111,30 @@ public class MirrorCameraScript : MonoBehaviour
dest
.
renderingPath
=
src
.
renderingPath
;
}
private
void
OnPreCull
()
{
foreach
(
GameObject
child
in
GameObject
.
FindGameObjectsWithTag
(
"CameraLight"
))
{
child
.
GetComponent
<
Light
>().
enabled
=
false
;
}
}
private
void
OnPreRender
()
{
foreach
(
GameObject
child
in
GameObject
.
FindGameObjectsWithTag
(
"CameraLight"
))
{
child
.
GetComponent
<
Light
>().
enabled
=
false
;
}
}
private
void
OnPostRender
()
{
foreach
(
GameObject
child
in
GameObject
.
FindGameObjectsWithTag
(
"CameraLight"
))
{
child
.
GetComponent
<
Light
>().
enabled
=
true
;
}
}
internal
void
RenderMirror
()
{
Camera
cameraLookingAtThisMirror
;
...
...
Assets/Prefabs/Objects/camera.prefab
View file @
f40dbf7f
...
...
@@ -12,7 +12,7 @@ GameObject:
-
component
:
{
fileID
:
6455375115460634363
}
m_Layer
:
0
m_Name
:
Spot Light (1)
m_TagString
:
Untagged
m_TagString
:
CameraLight
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
...
...
@@ -79,7 +79,7 @@ Light:
m_RenderMode
:
0
m_CullingMask
:
serializedVersion
:
2
m_Bits
:
4294967295
m_Bits
:
15671
m_RenderingLayerMask
:
1
m_Lightmapping
:
4
m_LightShadowCasterMode
:
0
...
...
@@ -103,7 +103,7 @@ GameObject:
-
component
:
{
fileID
:
7720395534605464657
}
m_Layer
:
0
m_Name
:
Spot Light
m_TagString
:
Untagged
m_TagString
:
CameraLight
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
...
...
@@ -170,7 +170,7 @@ Light:
m_RenderMode
:
0
m_CullingMask
:
serializedVersion
:
2
m_Bits
:
4294967295
m_Bits
:
15671
m_RenderingLayerMask
:
1
m_Lightmapping
:
4
m_LightShadowCasterMode
:
0
...
...
@@ -453,7 +453,7 @@ GameObject:
-
component
:
{
fileID
:
1807967598038583836
}
m_Layer
:
0
m_Name
:
Spot Light (2)
m_TagString
:
Untagged
m_TagString
:
CameraLight
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
...
...
@@ -520,7 +520,7 @@ Light:
m_RenderMode
:
0
m_CullingMask
:
serializedVersion
:
2
m_Bits
:
4294967295
m_Bits
:
15671
m_RenderingLayerMask
:
1
m_Lightmapping
:
4
m_LightShadowCasterMode
:
0
...
...
@@ -544,7 +544,7 @@ GameObject:
-
component
:
{
fileID
:
6344235443123850416
}
m_Layer
:
0
m_Name
:
Spot Light (3)
m_TagString
:
Untagged
m_TagString
:
CameraLight
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
...
...
@@ -611,7 +611,7 @@ Light:
m_RenderMode
:
0
m_CullingMask
:
serializedVersion
:
2
m_Bits
:
4294967295
m_Bits
:
15671
m_RenderingLayerMask
:
1
m_Lightmapping
:
4
m_LightShadowCasterMode
:
0
...
...
Assets/Resources/Stages/stage3.json
0 → 100644
View file @
f40dbf7f
{
"objects"
:[{
"tag"
:
0
,
"xPos"
:
25.0
,
"yPos"
:
0.0
},{
"tag"
:
3
,
"xPos"
:
-0.5
,
"yPos"
:
0.0
},{
"tag"
:
3
,
"xPos"
:
-1.5
,
"yPos"
:
0.0
},{
"tag"
:
3
,
"xPos"
:
-1.5
,
"yPos"
:
1.0
},{
"tag"
:
3
,
"xPos"
:
-1.5
,
"yPos"
:
-1.0
},{
"tag"
:
1
,
"xPos"
:
-2.0
,
"yPos"
:
2.0
},{
"tag"
:
1
,
"xPos"
:
-2.0
,
"yPos"
:
1.0
},{
"tag"
:
1
,
"xPos"
:
-1.0
,
"yPos"
:
1.0
},{
"tag"
:
1
,
"xPos"
:
-1.0
,
"yPos"
:
2.0
},{
"tag"
:
1
,
"xPos"
:
0.0
,
"yPos"
:
2.0
},{
"tag"
:
1
,
"xPos"
:
0.0
,
"yPos"
:
1.0
},{
"tag"
:
1
,
"xPos"
:
1.0
,
"yPos"
:
1.0
},{
"tag"
:
1
,
"xPos"
:
1.0
,
"yPos"
:
2.0
},{
"tag"
:
1
,
"xPos"
:
2.0
,
"yPos"
:
2.0
},{
"tag"
:
1
,
"xPos"
:
2.0
,
"yPos"
:
1.0
},{
"tag"
:
1
,
"xPos"
:
2.0
,
"yPos"
:
0.0
},{
"tag"
:
1
,
"xPos"
:
2.0
,
"yPos"
:
-1.0
},{
"tag"
:
1
,
"xPos"
:
2.0
,
"yPos"
:
-2.0
},{
"tag"
:
1
,
"xPos"
:
1.0
,
"yPos"
:
-2.0
},{
"tag"
:
1
,
"xPos"
:
1.0
,
"yPos"
:
-1.0
},{
"tag"
:
1
,
"xPos"
:
1.0
,
"yPos"
:
0.0
},{
"tag"
:
1
,
"xPos"
:
0.0
,
"yPos"
:
0.0
},{
"tag"
:
1
,
"xPos"
:
0.0
,
"yPos"
:
-1.0
},{
"tag"
:
1
,
"xPos"
:
0.0
,
"yPos"
:
-2.0
},{
"tag"
:
1
,
"xPos"
:
-1.0
,
"yPos"
:
-2.0
},{
"tag"
:
1
,
"xPos"
:
-1.0
,
"yPos"
:
-1.0
},{
"tag"
:
1
,
"xPos"
:
-1.0
,
"yPos"
:
0.0
},{
"tag"
:
1
,
"xPos"
:
-2.0
,
"yPos"
:
0.0
},{
"tag"
:
1
,
"xPos"
:
-2.0
,
"yPos"
:
-1.0
},{
"tag"
:
1
,
"xPos"
:
-2.0
,
"yPos"
:
-2.0
},{
"tag"
:
4
,
"xPos"
:
-1.0
,
"yPos"
:
-2.0
},{
"tag"
:
6
,
"xPos"
:
2.0
,
"yPos"
:
0.0
},{
"tag"
:
6
,
"xPos"
:
2.0
,
"yPos"
:
1.0
}],
"clears"
:[{
"type"
:
0
,
"goal"
:
2
}],
"cases"
:[],
"bullets"
:[
2
,
1
,
2
,
1
,
2
,
1
,
2
,
1
,
1
,
2
,
1
,
2
,
1
,
2
,
1
]}
\ No newline at end of file
Assets/Resources/Stages/stage3.json.meta
0 → 100644
View file @
f40dbf7f
fileFormatVersion: 2
guid: 1dca0508f621d594ab60072a5924b514
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scenes/PlayStage.unity
View file @
f40dbf7f
...
...
@@ -702,6 +702,18 @@ PrefabInstance:
m_Modification
:
m_TransformParent
:
{
fileID
:
0
}
m_Modifications
:
-
target
:
{
fileID
:
2122327709
,
guid
:
42247a938bb6e554eb00dc08303a72d6
,
type
:
3
}
propertyPath
:
uiGenerator
value
:
objectReference
:
{
fileID
:
158856768
}
-
target
:
{
fileID
:
2122327709
,
guid
:
42247a938bb6e554eb00dc08303a72d6
,
type
:
3
}
propertyPath
:
whiteout
value
:
objectReference
:
{
fileID
:
1839944657
}
-
target
:
{
fileID
:
2122327709
,
guid
:
42247a938bb6e554eb00dc08303a72d6
,
type
:
3
}
propertyPath
:
limeLight
value
:
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
52444459818764334
,
guid
:
42247a938bb6e554eb00dc08303a72d6
,
type
:
3
}
propertyPath
:
m_Name
...
...
@@ -712,14 +724,6 @@ PrefabInstance:
propertyPath
:
m_IsActive
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2122327709
,
guid
:
42247a938bb6e554eb00dc08303a72d6
,
type
:
3
}
propertyPath
:
uiGenerator
value
:
objectReference
:
{
fileID
:
158856768
}
-
target
:
{
fileID
:
2122327709
,
guid
:
42247a938bb6e554eb00dc08303a72d6
,
type
:
3
}
propertyPath
:
whiteout
value
:
objectReference
:
{
fileID
:
1839944657
}
-
target
:
{
fileID
:
52444459818764335
,
guid
:
42247a938bb6e554eb00dc08303a72d6
,
type
:
3
}
propertyPath
:
m_LocalPosition.x
...
...
@@ -858,6 +862,11 @@ PrefabInstance:
propertyPath
:
m_SortingOrder
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1444571407667829093
,
guid
:
0b18400fb62a12d4e9cb5fbb8ecbb53f
,
type
:
3
}
propertyPath
:
m_LocalPosition.z
value
:
0
objectReference
:
{
fileID
:
0
}
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
100100000
,
guid
:
0b18400fb62a12d4e9cb5fbb8ecbb53f
,
type
:
3
}
---
!u!1001
&5089720519379341084
...
...
ProjectSettings/TagManager.asset
View file @
f40dbf7f
...
...
@@ -8,6 +8,7 @@ TagManager:
-
floor
-
wallSign
-
briefcase
-
CameraLight
layers
:
-
Default
-
TransparentFX
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment