Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
__Dimensions ("Dimensions", Vector) = (128, 32, 0, 0)
__Padding ("Padding", Range(0.0, 0.8)) = .2
__Roundness ("Roundness", Range(0.0, 0.5)) = .35
[HideInInspector] _SrcBlend ("Source Blend", Float) = 1
[HideInInspector] _DstBlend ("Destination Blend", Float) = 0
[HideInInspector] _ZWrite ("Z Write", Float) = 1
}
SubShader
{
Expand All @@ -14,6 +17,9 @@

Pass
{
Blend [_SrcBlend] [_DstBlend]
ZWrite [_ZWrite]

CGPROGRAM
#pragma vertex vert
#pragma fragment frag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@
"m_ActiveSubTarget": {
"m_Id": "0b355835bddd4ed6b6cd051a52c1094f"
},
"m_AllowMaterialOverride": false,
"m_AllowMaterialOverride": true,
"m_SurfaceType": 0,
"m_ZTestMode": 4,
"m_ZWriteControl": 0,
Expand Down Expand Up @@ -2691,4 +2691,3 @@
"m_StageCapability": 3,
"m_BareResource": false
}

Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public override void UpdateFrame(DisplayFrameFormat format, byte[] frame)
break;

case DisplayFrameFormat.Dmd24:
case DisplayFrameFormat.Video24:
if (frame.Length == _width * _height * 3) {
CopyRgb24FrameToTexture(frame, _texture.GetRawTextureData<byte>());
_texture.Apply();
Expand Down Expand Up @@ -270,6 +271,7 @@ private void UpdatePalette(DisplayFrameFormat format)
break;

case DisplayFrameFormat.Dmd24:
case DisplayFrameFormat.Video24:
// no palette to handle here
break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ public enum DisplayFrameFormat
Dmd24, // rgb (3x 0-255)
Segment,
AlphaNumeric, // gets a byte-array converted string
Numeric // gets a byte-array converted float
Numeric, // gets a byte-array converted float
Video24 // rgb video (3x 0-255)
}

public class DisplayFrameData
Expand Down
Loading