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
| private delegate void PerformMainLoop(/* HWND__* */ IntPtr param_1, uint param_2, uint param_3, ulong param_4); // These parameters may be inaccurate | |
| private delegate GfxDevice GetGfxDevice(); | |
| private delegate IntPtr GetIVRDevice(); | |
| private delegate void SetupPixelCorrectCoordinates(bool _0); | |
| private static IntPtr GetFunctionPointerFromMethod(string methodName) => | |
| typeof(CustomUnityRender).GetMethod(methodName, BindingFlags.NonPublic | BindingFlags.Static).MethodHandle.GetFunctionPointer(); | |
| internal static void Init() | |
| { |
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
| int solve(float x) | |
| { | |
| if (x < 0) | |
| { | |
| return 0; | |
| } | |
| // 1>MinRepo.hlsl(7,2): warning X4000: use of potentially uninitialized variable (solve) | |
| // 1>error X8000 : D3D11 Internal Compiler error : Invalid Bytecode: Negate modifier not allowed for operand #4 of opcode #6 (counts are 1-based). |
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
| // ==UserScript== | |
| // @name ucas-course-console-helper | |
| // @namespace https://les1ie.com/ | |
| // @version 0.2 | |
| // @description 去除中国科学院大学课程网站对进入控制台的限制 | |
| // @author Les1ie | |
| // @match https://course.ucas.ac.cn/portal/* | |
| // @grant none | |
| // ==/UserScript== |
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 UnityEngine; | |
| using UnityEngine.Rendering; | |
| using Unity.Mathematics; | |
| [RequireComponent(typeof(Camera))] | |
| public class Draw : MonoBehaviour | |
| { | |
| [SerializeField] public Mesh Mesh; | |
| [SerializeField] public Material Material; | |
| private Camera mainCamera; |
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
| /*============================================================================ | |
| NVIDIA FXAA 3.11 by TIMOTHY LOTTES | |
| ------------------------------------------------------------------------------ | |
| COPYRIGHT (C) 2010, 2011 NVIDIA CORPORATION. ALL RIGHTS RESERVED. | |
| ------------------------------------------------------------------------------ | |
| TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED |
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
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |
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
| ## Unity ## | |
| *.cs diff=csharp text | |
| *.cginc text | |
| *.shader text | |
| *.mat merge=unityyamlmerge eol=lf | |
| *.anim merge=unityyamlmerge eol=lf | |
| *.unity merge=unityyamlmerge eol=lf | |
| *.prefab merge=unityyamlmerge eol=lf |
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
| float3 CurColor=0; | |
| float2 NewUV = UV; | |
| int i=0; | |
| float StepSize = Distance / (int) DistanceSteps; | |
| float CurDistance=0; | |
| float2 CurOffset=0; | |
| float SubOffset = 0; | |
| float TwoPi = 6.283185; | |
| float accumdist=0; |
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
| bool ASMutator_WeaponReplacement::CheckRelevance_Implementation(AActor* Other) | |
| { | |
| ASWeaponPickup* WeaponPickup = Cast<ASWeaponPickup>(Other); | |
| if (WeaponPickup) | |
| { | |
| for (int32 i = 0; i < WeaponsToReplace.Num(); i++) | |
| { | |
| const FReplacementInfo& Info = WeaponsToReplace[i]; | |
| if (Info.FromWeapon == WeaponPickup->WeaponClass) |