commit807aa8c3c6
Merge:34f74aa
3777d06
Author: Clement <clement@jo85.com> Date: Thu Jan 18 12:02:57 2024 +0100 Merge pull request 'add Atomes Factory' (#10) from feature/AtomesFactory into develop Reviewed-on: #10 Reviewed-by: Clement <clement@jo85.com> commit3777d06a0e
Author: Mathis <mathis.ragot@epitech.eu> Date: Thu Jan 18 12:00:00 2024 +0100 Rename Classname commit16bd5bfb6c
Merge:da9d57b
34f74aa
Author: Mathis <mathis.ragot@epitech.eu> Date: Thu Jan 18 11:46:03 2024 +0100 Merge remote-tracking branch 'origin/develop' into feature/AtomesFactory commitda9d57b0bb
Author: Mathis <mathis.ragot@epitech.eu> Date: Thu Jan 18 11:44:22 2024 +0100 vue foria config commit5346e596c8
Author: Mathis <mathis.ragot@epitech.eu> Date: Thu Jan 18 11:28:02 2024 +0100 [feature/AtomesFactory] - remove testing file commitf613217658
Author: Mathis <mathis.ragot@epitech.eu> Date: Thu Jan 18 10:38:59 2024 +0100 [feature/AtomesFactory] - Add json for atomes commitbc2b9e02fd
Author: Mathis <mathis.ragot@epitech.eu> Date: Fri Jan 12 15:37:09 2024 +0100 add Atomes Factory commit34f74aa443
Merge:8b6d07f
f181fd9
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Jan 12 11:50:43 2024 +0100 Merge pull request 'feature/multi_targets' (#7) from feature/multi_targets into develop Reviewed-on: #7 Reviewed-by: Clement <clement@jo85.com> commitf181fd9935
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Jan 12 11:50:10 2024 +0100 fix du mauvais nom de scene dans le script ChangeScene.cs commit1c76868eee
Merge:f1ec062
8b6d07f
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Jan 12 11:39:02 2024 +0100 Merge remote-tracking branch 'origin/develop' into feature/multi_targets commitf1ec062047
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Jan 12 11:37:29 2024 +0100 ajout du font fallback commit9c23975b20
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Jan 12 11:36:49 2024 +0100 rajouts des fonts text mesh pro commitaff9df22cf
Merge:a791273
73394e5
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Jan 12 11:03:32 2024 +0100 Merge remote-tracking branch 'origin/develop' into feature/multi_targets commita7912733e5
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Jan 12 10:54:51 2024 +0100 Ajout dans le canvas d'éléments UI (nom, description....) commit0313fe28a1
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Jan 12 09:57:07 2024 +0100 Suppression du build de la CI commit5237a32bb4
Author: Nicolas <nicolas.sansd@gmail.com> Date: Thu Jan 11 16:18:35 2024 +0100 ajout de la keystore de debug (user) + changement de la target version d'android commitafa265dd31
Author: Nicolas <nicolas.sansd@gmail.com> Date: Thu Jan 11 11:26:53 2024 +0100 Affichage des molécules unitairement et en mode fusion commit84136dcc5c
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Dec 22 15:05:47 2023 +0100 MAJ du fichier d'action build.yaml commitce3c956544
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Dec 22 15:02:10 2023 +0100 MAJ du fichier d'action build.yaml commit8f105732f7
Author: Nicolas <nicolas.sansd@gmail.com> Date: Fri Dec 22 14:36:52 2023 +0100 Ajout de la multitarget pour générer un préfab
107 lines
3.0 KiB
Plaintext
107 lines
3.0 KiB
Plaintext
// Simplified SDF shader:
|
|
// - No Shading Option (bevel / bump / env map)
|
|
// - No Glow Option
|
|
// - Softness is applied on both side of the outline
|
|
|
|
Shader "TextMeshPro/Mobile/Distance Field SSD" {
|
|
|
|
Properties {
|
|
[HDR]_FaceColor ("Face Color", Color) = (1,1,1,1)
|
|
_FaceDilate ("Face Dilate", Range(-1,1)) = 0
|
|
|
|
[HDR]_OutlineColor ("Outline Color", Color) = (0,0,0,1)
|
|
_OutlineWidth ("Outline Thickness", Range(0,1)) = 0
|
|
_OutlineSoftness ("Outline Softness", Range(0,1)) = 0
|
|
|
|
[HDR]_UnderlayColor ("Border Color", Color) = (0,0,0,.5)
|
|
_UnderlayOffsetX ("Border OffsetX", Range(-1,1)) = 0
|
|
_UnderlayOffsetY ("Border OffsetY", Range(-1,1)) = 0
|
|
_UnderlayDilate ("Border Dilate", Range(-1,1)) = 0
|
|
_UnderlaySoftness ("Border Softness", Range(0,1)) = 0
|
|
|
|
_WeightNormal ("Weight Normal", float) = 0
|
|
_WeightBold ("Weight Bold", float) = .5
|
|
|
|
_ShaderFlags ("Flags", float) = 0
|
|
_ScaleRatioA ("Scale RatioA", float) = 1
|
|
_ScaleRatioB ("Scale RatioB", float) = 1
|
|
_ScaleRatioC ("Scale RatioC", float) = 1
|
|
|
|
_MainTex ("Font Atlas", 2D) = "white" {}
|
|
_TextureWidth ("Texture Width", float) = 512
|
|
_TextureHeight ("Texture Height", float) = 512
|
|
_GradientScale ("Gradient Scale", float) = 5
|
|
_ScaleX ("Scale X", float) = 1
|
|
_ScaleY ("Scale Y", float) = 1
|
|
_PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875
|
|
_Sharpness ("Sharpness", Range(-1,1)) = 0
|
|
|
|
_VertexOffsetX ("Vertex OffsetX", float) = 0
|
|
_VertexOffsetY ("Vertex OffsetY", float) = 0
|
|
|
|
_ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767)
|
|
_MaskSoftnessX ("Mask SoftnessX", float) = 0
|
|
_MaskSoftnessY ("Mask SoftnessY", float) = 0
|
|
_MaskTex ("Mask Texture", 2D) = "white" {}
|
|
_MaskInverse ("Inverse", float) = 0
|
|
_MaskEdgeColor ("Edge Color", Color) = (1,1,1,1)
|
|
_MaskEdgeSoftness ("Edge Softness", Range(0, 1)) = 0.01
|
|
_MaskWipeControl ("Wipe Position", Range(0, 1)) = 0.5
|
|
|
|
_StencilComp ("Stencil Comparison", Float) = 8
|
|
_Stencil ("Stencil ID", Float) = 0
|
|
_StencilOp ("Stencil Operation", Float) = 0
|
|
_StencilWriteMask ("Stencil Write Mask", Float) = 255
|
|
_StencilReadMask ("Stencil Read Mask", Float) = 255
|
|
|
|
_CullMode ("Cull Mode", Float) = 0
|
|
_ColorMask ("Color Mask", Float) = 15
|
|
}
|
|
|
|
SubShader {
|
|
Tags {
|
|
"Queue"="Transparent"
|
|
"IgnoreProjector"="True"
|
|
"RenderType"="Transparent"
|
|
}
|
|
|
|
Stencil
|
|
{
|
|
Ref [_Stencil]
|
|
Comp [_StencilComp]
|
|
Pass [_StencilOp]
|
|
ReadMask [_StencilReadMask]
|
|
WriteMask [_StencilWriteMask]
|
|
}
|
|
|
|
Cull [_CullMode]
|
|
ZWrite Off
|
|
Lighting Off
|
|
Fog { Mode Off }
|
|
ZTest [unity_GUIZTestMode]
|
|
Blend One OneMinusSrcAlpha
|
|
ColorMask [_ColorMask]
|
|
|
|
Pass {
|
|
CGPROGRAM
|
|
#pragma vertex VertShader
|
|
#pragma fragment PixShader
|
|
#pragma shader_feature __ OUTLINE_ON
|
|
#pragma shader_feature __ UNDERLAY_ON UNDERLAY_INNER
|
|
|
|
#pragma multi_compile __ UNITY_UI_CLIP_RECT
|
|
#pragma multi_compile __ UNITY_UI_ALPHACLIP
|
|
|
|
#include "UnityCG.cginc"
|
|
#include "UnityUI.cginc"
|
|
#include "TMPro_Properties.cginc"
|
|
|
|
#include "TMPro_Mobile.cginc"
|
|
|
|
ENDCG
|
|
}
|
|
}
|
|
|
|
CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI"
|
|
}
|