Commit 59695355 authored by saad's avatar saad

,

parent 6ba634ea
...@@ -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);
......
...@@ -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.10828862, a: 0.04864688} - _BaseColor: {r: 0, g: 1, b: 0.10825572, a: 0.6466718}
- _Color: {r: 0, g: 1, b: 0.10832562, a: 0.13279839} - _Color: {r: 0, g: 1, b: 0.10828138, 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: []
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();
}
}
}
fileFormatVersion: 2
guid: 2245b0dcf8bbd1f41a75d0dcc7f1564a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: fdc32d96ab9ef7341a46bc71bbf721ca
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: ade7fc6240e97f94f99d2d12a9fe2b55
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment