vlad-andreev
8 年前
当前提交
ea3c49e2
共有 9 个文件被更改,包括 70 次插入 和 126 次删除
-
2Assets/ScriptableRenderLoop/HDRenderLoop/HDRenderLoop.cs
-
21Assets/ScriptableRenderLoop/HDRenderLoop/Shaders/LightDefinition.cs
-
18Assets/ScriptableRenderLoop/HDRenderLoop/Shaders/LightDefinition.cs.hlsl
-
4Assets/ScriptableRenderLoop/common/ShaderBase.h
-
26Assets/ScriptableRenderLoop/fptl/FptlLighting.cs
-
37Assets/ScriptableRenderLoop/fptl/LightDefinitions.cs
-
34Assets/ScriptableRenderLoop/fptl/LightDefinitions.cs.hlsl
-
42Assets/ScriptableRenderLoop/common/ShaderBase.cs
-
12Assets/ScriptableRenderLoop/common/ShaderBase.cs.meta
|
|||
#if !__HLSL
|
|||
|
|||
using UnityEngine; |
|||
|
|||
|
|||
public struct Vec2 |
|||
{ |
|||
public static implicit operator Vec2(Vector2 v) { return new Vec2(v.x, v.y); } |
|||
public Vec2(Vec2 v) { x = v.x; y = v.y; } |
|||
public Vec2(float fX, float fY) { x = fX; y = fY; } |
|||
|
|||
public float x, y; |
|||
}; |
|||
|
|||
public struct Vec3 |
|||
{ |
|||
public static implicit operator Vec3(Vector3 v) { return new Vec3(v.x, v.y, v.z); } |
|||
public static implicit operator Vec3(Vector4 v) { return new Vec3(v.x, v.y, v.z); } |
|||
public Vec3(Vec3 v) { x = v.x; y = v.y; z = v.z; } |
|||
public Vec3(float fX, float fY, float fZ) { x = fX; y = fY; z = fZ; } |
|||
|
|||
public float x, y, z; |
|||
}; |
|||
|
|||
public struct Vec4 |
|||
{ |
|||
public static implicit operator Vec4(Vector4 v) { return new Vec4(v.x, v.y, v.z, v.w); } |
|||
public static implicit operator Vec4(Vector3 v) { return new Vec4(v.x, v.y, v.z, 1.0f); } |
|||
public Vec4(Vec4 v) { x = v.x; y = v.y; z = v.z; w = v.w; } |
|||
public Vec4(float fX, float fY, float fZ, float fW) { x = fX; y = fY; z = fZ; w = fW; } |
|||
|
|||
public float x, y, z, w; |
|||
}; |
|||
|
|||
public struct Mat44 |
|||
{ |
|||
public Mat44( Matrix4x4 m ) { c0 = new Vec4(m.GetColumn(0)); c1 = new Vec4(m.GetColumn(1)); c2 = new Vec4(m.GetColumn(2)); c3 = new Vec4(m.GetColumn(3)); } |
|||
|
|||
public Vec4 c0, c1, c2, c3; |
|||
}; |
|||
|
|||
#endif
|
|
|||
fileFormatVersion: 2 |
|||
guid: c1ebf357fa7277c4697f21c295e8c4c2 |
|||
timeCreated: 1467917164 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue