• Stars
    star
    128
  • Rank 279,655 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created about 4 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A few scripts which controls interactions for a hand of cards. Card model, shadergraph and example setup included.

Cards

See here for preview : https://twitter.com/Cyanilux/status/1296100597893148677

• Uses CardHandController.cs (and Card.cs) scripts to set position/rotation for a hand of cards based on curve, and allows for interactions with mouse.
• Intended to work in 3D. Doesn't really work that well with UI due to scaling differences. Worldspace UI or Screenspace-Camera might work?
• Can drag to reorder cards in hand. Drag a card outside the hand bounds and it starts tilting/wobbling based on mouse movement velocity.
• Releasing a card outside of the hand will trigger it to be used, and applies a dissolve shader effect.
• Card model, shadergraph and example scene setup included.
• Universal Render Pipeline required for shader to work, though the script should still work in other pipelines.
• Example cards also use Text Mesh Pro, and are rendered using an overlay camera & Forward Renderer feature to override Stencil values. While this isn't required, if the TextMeshPro material is set to use those stencil values (under debug settings on TMP material, Stencil ID 1, Stencil Comp 3 (aka equal)), it allows text to dissolve with the card (though still can show when overlapping with other cards)
• Doesn't really include actual gameplay elements, it's mostly just a controller for the hand of cards. Includes a very basic mana system though, so cards can only be used if there is enough mana.

@Cyanilux
:)

More Repositories

1

URP_BlitRenderFeature

Blit Render Feature for Universal RP's Forward Renderer. Set specific source/destination via camera source, ID string or RenderTexture asset. Also options for _InverseView matrix and _CameraNormalsTexture generation.
C#
565
star
2

URP_ShaderGraphCustomLighting

Some custom lighting functions/sub-graphs for Shader Graph, Universal Render Pipeline
HLSL
524
star
3

URP_ShaderCodeTemplates

A few shader code templates/examples for Unity, Universal Render Pipeline (URP v10 / Unity 2020.3). ShaderLab & HLSL.
ShaderLab
267
star
4

ShaderGraphVariables

Adds 'Register Variable' and 'Get Variable' nodes to Shader Graph, allowing you to link sections of a graph without connection wires. <3
C#
251
star
5

URP_WatercolourShaders

A few experiments with watercolour-like shader effects made using Shader Graph. Unity 2020.1.2f1, URP 8.2.0
C#
180
star
6

BakeShader

Unity editor tool for baking shaders to textures. Texture2D, Texture3D, Flipbook, or MeshRenderer (uses model UV)
C#
163
star
7

URP_RetroCRTShader

A shader graph which replicates some retro tv/monitor effects. CRT (cathode-ray tube) warping, scanlines, static, distortion, etc.
C#
141
star
8

ShaderGraphToPNG

Screenshots a Shader Graph in multiple sections, stitches them together and saves the result as a PNG
C#
117
star
9

ToDo

Unity in-editor to-do list, attached as a component and uses a custom inspector based on ReorderableList. Also see branches for ScriptableObject / cross-scene reference version.
C#
81
star
10

URP_GrassGeometryShader

Example of a Grass Geometry Shader for Unity, Universal Render Pipeline. Based on https://github.com/IronWarrior/UnityGrassGeometryShader
HLSL
63
star
11

cyanilux.github.io

Tutorial/blog site, generated using Hugo
HTML
2
star