This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Numerics; | |
using System.Runtime.InteropServices; | |
using System.Security.Cryptography; | |
using System.Linq; | |
using System; | |
using System.Runtime.CompilerServices; | |
// Test code | |
var rng = new Seiran128(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IbukiHash by Andante (https://twitter.com/andanteyk) | |
// This work is marked with CC0 1.0. To view a copy of this license, visit https://creativecommons.org/publicdomain/zero/1.0/ | |
float ibuki(float4 v) | |
{ | |
const uint4 mult = | |
uint4(0xae3cc725, 0x9fe72885, 0xae36bfb5, 0x82c1fcad); | |
uint4 u = uint4(v); | |
u = u * mult; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This work is marked with CC0 1.0. To view a copy of this license, visit https://creativecommons.org/publicdomain/zero/1.0/ | |
Shader "Unlit/PerlinTest" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Transparent" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "TextMeshPro/Bitmap_Shadow" { // この名前を変える | |
Properties { | |
_MainTex ("Font Atlas", 2D) = "white" {} | |
_FaceTex ("Font Texture", 2D) = "white" {} | |
[HDR]_FaceColor ("Text Color", Color) = (1,1,1,1) | |
[HDR]_ShadowColor ("Shadow Color", Color) = (0.5,0.5,0.5,1) // 追加 | |
_ShadowFlag ("Shadow Flag", int) = 255 // 追加 | |
// TMP を騙す |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code is licensed under the terms of the MIT license. | |
// For details, see https://gist.github.com/andanteyk/d08ab296665b3fc68df58beff3ea39cb . | |
// How to build: | |
// > dotnet new console | |
// > dotnet add package BenchmarkDotNet | |
// > dotnet run -c Release | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Configs; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.InteropServices; | |
using System.Security.Cryptography; | |
#if UNITY_2019_1_OR_NEWER | |
// in unity environment | |
using UnityEngine; | |
using System.Reflection; | |
#else | |
// in dotnet environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using RngLab.Rng.Generators; | |
using System.Linq; | |
namespace RngLab.UnitTest.Generators; | |
[TestClass] | |
public class LxmTest | |
{ | |
[TestMethod] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| |
⠀ | |
العربية | |
ABCD | |
DCBA | |
لدي 100 تفاحة. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Buffers; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Security.Cryptography; | |
// This code is licensed under the terms of the MIT license. | |
// For details, see https://gist.github.com/andanteyk/d08ab296665b3fc68df58beff3ea39cb . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
※命中と射程が上がるものだけ抜粋 | |
41cm三連装砲改二: | |
伊勢改二 (命中+3, 火力+3, 対空+2, 回避+1) x搭載数 | |
日向改二 (命中+3, 火力+3, 対空+2, 回避+2) x搭載数 | |
二式艦上偵察機: | |
伊勢改二 (命中+5, 火力+3, 回避+2, 装甲+1, 射程+1) | |
日向改二 (命中+5, 火力+3, 回避+3, 装甲+3, 射程+1) | |
飛龍改二 (命中+5, 射程+1), [★1以上](火力+2, 索敵+2) |
NewerOlder