- open the terminal (Ctrl+R + cmd)
- check Python3 installation:
py --version - go to official website to learn details: https://pypi.org/project/opencv-python/
- choose the most complete package and run:
py -m pip install opencv-contrib-python - check installation by entering the Python REPL:
py - import tha library:
import cv2
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 "Universal Render Pipeline/Custom/UnlitWithDotsInstancing" | |
| { | |
| Properties | |
| { | |
| _BaseMap ("Base Texture", 2D) = "white" {} | |
| _BaseColor ("Base Colour", Color) = (1, 1, 1, 1) | |
| } | |
| SubShader | |
| { |
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.Collections.Generic; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using Object = UnityEngine.Object; | |
| public class MaterialGradientDrawer : MaterialPropertyDrawer { | |
| private int resolution; |
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 needs to live in a folder named "Editor", or it won't work. Doesn't have to be named | |
| "BobTheBuilder", though. Name it whatever you want! */ | |
| using System; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class BobTheBuilder | |
| { | |
| /* List of scenes to include in the build */ |
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 "Universal Render Pipeline/Custom/VertexLit" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _Gain ("Gain", Float) = 1.5 | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _EdgeColor ("Edge Color", Color) = (0,0,0,1) | |
| [Toggle] _RemoveDiag("Remove diagonals", Float) = 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
| Shader "Universal Render Pipeline/Custom/UnlitTextureShadows" | |
| { | |
| Properties | |
| { | |
| [MainColor] _BaseColor("BaseColor", Color) = (1,1,1,1) | |
| [MainTexture] _BaseMap("BaseMap", 2D) = "white" {} | |
| } | |
| SubShader | |
| { |
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
| // -------------------------------------------------------------------------------------------------------------------- | |
| // <copyright file="TooltipDrawer.cs" company="Supyrb"> | |
| // Copyright (c) 2018 Supyrb. All rights reserved. | |
| // </copyright> | |
| // <author> | |
| // Johannes Deml | |
| // send@johannesdeml.com | |
| // </author> | |
| // -------------------------------------------------------------------------------------------------------------------- |
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
| // When creating shaders for Universal Render Pipeline you can you the ShaderGraph which is super AWESOME! | |
| // However, if you want to author shaders in shading language you can use this teamplate as a base. | |
| // Please note, this shader does not necessarily match perfomance of the built-in URP Lit shader. | |
| // This shader works with URP 7.1.x and above | |
| Shader "Universal Render Pipeline/Custom/Physically Based Example" | |
| { | |
| Properties | |
| { | |
| // Specular vs Metallic workflow | |
| [HideInInspector] _WorkflowMode("WorkflowMode", Float) = 1.0 |
NewerOlder