Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
1
1stGames
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Abdulrahman Mohammed
1stGames
Commits
59695355
Commit
59695355
authored
Dec 25, 2025
by
saad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
,
parent
6ba634ea
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
506 additions
and
412 deletions
+506
-412
LiquidVolume.cs
Assets/LiquidVolumePro/Scripts/LiquidVolume.cs
+1
-1
Highlight.mat
Assets/Scenes/1st/Material/Highlight.mat
+2
-2
WebGLVideoController.cs
Assets/Scenes/Test 2/Script/WebGLVideoController.cs
+33
-0
WebGLVideoController.cs.meta
Assets/Scenes/Test 2/Script/WebGLVideoController.cs.meta
+11
-0
test.unity
Assets/Scenes/Test 2/test.unity
+444
-409
StreamingAssets.meta
Assets/StreamingAssets.meta
+8
-0
demo.mp4
Assets/StreamingAssets/demo.mp4
+0
-0
demo.mp4.meta
Assets/StreamingAssets/demo.mp4.meta
+7
-0
No files found.
Assets/LiquidVolumePro/Scripts/LiquidVolume.cs
View file @
59695355
...
@@ -2136,7 +2136,7 @@ namespace LiquidVolumeFX {
...
@@ -2136,7 +2136,7 @@ namespace LiquidVolumeFX {
scatteringPower
=
0
;
scatteringPower
=
0
;
scatteringAmount
=
0
;
scatteringAmount
=
0
;
}
}
liqMat
.
SetVector
(
ShaderParams
.
GlossinessInt
,
new
Vector4
((
1f
-
_glossinessInternal
)
*
96f
+
1f
,
Mathf
.
Pow
(
2
,
scatteringPower
),
scatteringAmount
,
_glossinessInternal
));
//
liqMat.SetVector(ShaderParams.GlossinessInt, new Vector4((1f - _glossinessInternal) * 96f + 1f, Mathf.Pow(2, scatteringPower), scatteringAmount, _glossinessInternal));
liqMat
.
SetFloat
(
ShaderParams
.
DoubleSidedBias
,
_doubleSidedBias
);
liqMat
.
SetFloat
(
ShaderParams
.
DoubleSidedBias
,
_doubleSidedBias
);
liqMat
.
SetFloat
(
ShaderParams
.
BackDepthBias
,
-
_backDepthBias
);
liqMat
.
SetFloat
(
ShaderParams
.
BackDepthBias
,
-
_backDepthBias
);
...
...
Assets/Scenes/1st/Material/Highlight.mat
View file @
59695355
...
@@ -135,8 +135,8 @@ Material:
...
@@ -135,8 +135,8 @@ Material:
-
_XRMotionVectorsPass
:
1
-
_XRMotionVectorsPass
:
1
-
_ZWrite
:
0
-
_ZWrite
:
0
m_Colors
:
m_Colors
:
-
_BaseColor
:
{
r
:
0
,
g
:
1
,
b
:
0.1082
8862
,
a
:
0.0486468
8
}
-
_BaseColor
:
{
r
:
0
,
g
:
1
,
b
:
0.1082
5572
,
a
:
0.646671
8
}
-
_Color
:
{
r
:
0
,
g
:
1
,
b
:
0.108
32562
,
a
:
0.13279839
}
-
_Color
:
{
r
:
0
,
g
:
1
,
b
:
0.108
28138
,
a
:
0.9245481
}
-
_EmissionColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
-
_EmissionColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
-
_SpecColor
:
{
r
:
0.19999996
,
g
:
0.19999996
,
b
:
0.19999996
,
a
:
1
}
-
_SpecColor
:
{
r
:
0.19999996
,
g
:
0.19999996
,
b
:
0.19999996
,
a
:
1
}
m_BuildTextureStacks
:
[]
m_BuildTextureStacks
:
[]
Assets/Scenes/Test 2/Script/WebGLVideoController.cs
0 → 100644
View file @
59695355
using
UnityEngine
;
using
UnityEngine.Video
;
public
class
WebGLVideoController
:
MonoBehaviour
{
public
VideoPlayer
videoPlayer
;
public
string
videoFileName
=
"intro.mp4"
;
void
Start
()
{
// WebGL requires URL from StreamingAssets
videoPlayer
.
source
=
VideoSource
.
Url
;
videoPlayer
.
url
=
Application
.
streamingAssetsPath
+
"/"
+
videoFileName
;
// Browser requires muted video
videoPlayer
.
audioOutputMode
=
VideoAudioOutputMode
.
Direct
;
videoPlayer
.
SetDirectAudioMute
(
0
,
true
);
videoPlayer
.
playOnAwake
=
false
;
videoPlayer
.
waitForFirstFrame
=
true
;
PlayVideo
();
}
// Call this from a UI Button
public
void
PlayVideo
()
{
if
(!
videoPlayer
.
isPlaying
)
{
videoPlayer
.
Play
();
}
}
}
Assets/Scenes/Test 2/Script/WebGLVideoController.cs.meta
0 → 100644
View file @
59695355
fileFormatVersion: 2
guid: 2245b0dcf8bbd1f41a75d0dcc7f1564a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scenes/Test 2/test.unity
View file @
59695355
This diff is collapsed.
Click to expand it.
Assets/StreamingAssets.meta
0 → 100644
View file @
59695355
fileFormatVersion: 2
guid: fdc32d96ab9ef7341a46bc71bbf721ca
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/StreamingAssets/demo.mp4
0 → 100644
View file @
59695355
File added
Assets/StreamingAssets/demo.mp4.meta
0 → 100644
View file @
59695355
fileFormatVersion: 2
guid: ade7fc6240e97f94f99d2d12a9fe2b55
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
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